From: Jeremy Thurgood Date: Fri, 16 May 2014 20:18:08 +0000 (+0200) Subject: Accusatory win screen. X-Git-Tag: 0.1~191 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=6e39e48a5c9921df699a8540942f08dfbc12a14a;p=naja.git Accusatory win screen. --- diff --git a/naja/scenes/win.py b/naja/scenes/win.py index 65765d7..f4df54f 100644 --- a/naja/scenes/win.py +++ b/naja/scenes/win.py @@ -4,7 +4,7 @@ Win scene. import pygame.locals as pgl -from naja.constants import KEYS +from naja.constants import KEYS, PALETTE from naja.scenes.scene import Scene from naja.widgets.text import TextWidget, TextBoxWidget from naja.events import QuitGameEvent @@ -17,17 +17,17 @@ class WinScene(Scene): def __init__(self, state): super(WinScene, self).__init__(state) - self.add(TextWidget( - (480, 160), 'You won!', fontsize=32, colour='white')) + self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE)) + self.add(TextWidget((50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE)) self.add(TextBoxWidget( - (120, 30), '\n'.join([ + (50, 100), '\n'.join([ "You're great.", "You did well.", "You should be proud of yourself.", - ]), fontsize=32, - colour='white', padding=1, border=1, - bg_colour='black', border_colour='black', - box_width=100)) + ]), + colour=PALETTE.WHITE, padding=1, border=1, + bg_colour=PALETTE.BLACK, border_colour=PALETTE.BLACK, + box_width=300)) def handle_scene_event(self, ev): if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT: