Centre some credits lines
[naja.git] / naja / scenes / credits.py
index 67cb4e5a7045facdc7f20acf16d18f96a17c1b6e..05493dd1f436224d3ab43357575dcfd7da906f5e 100644 (file)
@@ -18,21 +18,27 @@ class CreditsScene(Scene):
     def __init__(self, state):
         super(CreditsScene, self).__init__(state)
         self.add(TextWidget(
-            (480, 160), 'Credits', fontsize=32, colour='white'))
+            (400, 30), 'Credits', fontsize=32, colour='white', centre=True))
+        self.add(TextWidget(
+            (400, 80), 'A game about robots and bits and other things',
+            fontsize=32, colour='white', centre=True))
+        self.add(TextWidget(
+            (400, 120), 'by', fontsize=32, colour='white', centre=True))
+        self.add(TextBoxWidget(
+            (20, 160), 'Adrianna Pinska, David Sharpe, Jeremy Thurgood, '
+            'Neil Muller, Simon Cross & Stefano Rivera',
+            fontsize=32, colour='white', padding=1, border=1,
+            bg_colour='black', border_colour='black',
+            box_width=320))
         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,
+            (30, 280),
+            'Music by Rolemusic: http://rolemusic.sawsquarenoise.com/',
+            fontsize=32, colour='white', padding=1, border=1,
             bg_colour='black', border_colour='black',
-            box_width=100))
+            box_width=320))
 
     def handle_scene_event(self, ev):
-        if ev.type == pgl.KEYUP and ev.key in KEYS.QUIT:
+        if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT:
             from naja.scenes.menu import MenuScene
             SceneChangeEvent.post(MenuScene)
             return