Credits title shouldn't scroll
[naja.git] / naja / scenes / credits.py
index 415f0b9835410658b110a7967848199296684217..ab330bfd9fb5be28f16c35251789a255203c6162 100644 (file)
@@ -7,6 +7,7 @@ import pygame.locals as pgl
 from naja.constants import KEYS
 from naja.scenes.scene import Scene
 from naja.widgets.text import TextWidget, TextBoxWidget
+from naja.widgets.image_box import ImageBox
 from naja.events import SceneChangeEvent
 
 
@@ -17,19 +18,29 @@ class CreditsScene(Scene):
 
     def __init__(self, state):
         super(CreditsScene, self).__init__(state)
-        self.add(TextWidget(
-            (480, 160), 'Credits', fontsize=32, colour='white'))
+
+        background = ImageBox(
+            (0, 0), "screens/splash.png")
+        self.add(background)
+        self.add(TextWidget((344, 300), 'CREDITS', colour='white'))
+
         self.add(TextBoxWidget(
-            (120, 30), '\n'.join([
-                'Your mom A stranger',
-                'A',
-                'bag full of snakes',
-                'A host of really bored bronies',
-                'And FIVE GOLDEN RIIIIINGS!'
-            ]), fontsize=32,
-            colour='white', padding=1, border=1,
-            bg_colour='black', border_colour='black',
-            box_width=100))
+            (10, 350), '\n'.join([
+                'A game about robots and bits and other things',
+                '',
+                'by',
+                '',
+                'Adrianna Pinska, David Sharpe, Jeremy Thurgood, '
+                'Neil Muller, Simon Cross & Stefano Rivera',
+                '',
+                'Music by Rolemusic:',
+                'http://rolemusic.sawsquarenoise.com/',
+                '',
+                'Press ESC to return to the menu.',
+            ]),
+            colour='white', padding=1,
+            bg_colour=(0, 0, 0, 0), centre=True,
+            box_width=640, view_port=(780, 230)))
 
     def handle_scene_event(self, ev):
         if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT: