Override dh_python2's idea of supported python versions, for wider installability
[naja.git] / naja / scenes / win.py
index c4a09a8727013c5c706ca6354e2f0fe7f4fce789..95d931a0b761227ccdb8822da5a090269658ef37 100644 (file)
@@ -7,6 +7,7 @@ import pygame.locals as pgl
 from naja.constants import KEYS, PALETTE
 from naja.events import QuitGameEvent
 from naja.scenes.scene import Scene
+from naja.widgets.image_box import ImageBox
 from naja.widgets.text import TextWidget, TextBoxWidget
 
 
@@ -17,12 +18,17 @@ class WinScene(Scene):
 
     def __init__(self, state):
         super(WinScene, self).__init__(state)
+
+        background = ImageBox(
+            (0, 0), "screens/you_won.png")
+        self.add(background)
+
         self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE))
         if self.state.gameboard.has_cheated:
             self.add(TextWidget(
                 (50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE))
         self.add(TextBoxWidget(
-            (50, 100), '\n'.join([
+            (50, 100), '\n\n'.join([
                 "You're great.",
                 "You did well.",
                 "You should be proud of yourself.",