Clean up credits test string.
authorSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 21:40:16 +0000 (23:40 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 21:41:13 +0000 (23:41 +0200)
naja/scenes/credits.py

index f7b1e5a2ca7482c49d93eac59df4595f647ff40c..fe2fb6beae727f33aa42293d4df874525da27ea3 100644 (file)
@@ -15,18 +15,19 @@ class CreditsScene(Scene):
 
     def __init__(self, state):
         super(CreditsScene, self).__init__(state)
-        self.add(TextWidget((480, 160), 'Credits', fontsize=32,
-                            colour='white'))
-        self.add(TextBoxWidget((120, 30),
-                                       'Your mom '
-                                       'A stranger \n'
-                                       'A \n'
-                                       'bag full of snakes\n'
-                                       'A host of really bored bronies\n'
-                                       'And FIVE GOLDEN RIIIIINGS!', fontsize=32,
-                            colour='white', padding=1, border=1,
-                            bg_colour='black', border_colour='black',
-                            box_width=100))
+        self.add(TextWidget(
+            (480, 160), 'Credits', fontsize=32, 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))
 
     def handle_scene_event(self, ev):
         if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE):