From d6b587d8325492b436c4e19f8842f5ae7fccf6a4 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 17 May 2014 01:38:56 +0200 Subject: [PATCH] Use centering on Credits screen. --- naja/scenes/credits.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/naja/scenes/credits.py b/naja/scenes/credits.py index ab330bf..a6ae05d 100644 --- a/naja/scenes/credits.py +++ b/naja/scenes/credits.py @@ -22,10 +22,11 @@ class CreditsScene(Scene): background = ImageBox( (0, 0), "screens/splash.png") self.add(background) - self.add(TextWidget((344, 300), 'CREDITS', colour='white')) + self.add(TextWidget( + (400, 300), 'CREDITS', colour='white', centre=True)) self.add(TextBoxWidget( - (10, 350), '\n'.join([ + (400, 340), '\n'.join([ 'A game about robots and bits and other things', '', 'by', @@ -40,7 +41,7 @@ class CreditsScene(Scene): ]), colour='white', padding=1, bg_colour=(0, 0, 0, 0), centre=True, - box_width=640, view_port=(780, 230))) + box_width=780, view_port=(780, 250))) def handle_scene_event(self, ev): if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT: -- 2.34.1