projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1bf224b
)
Innocent until proven guilty. Oops.
author
Jeremy Thurgood
<firxen@gmail.com>
Fri, 16 May 2014 20:34:16 +0000
(22:34 +0200)
committer
Jeremy Thurgood
<firxen@gmail.com>
Fri, 16 May 2014 20:34:29 +0000
(22:34 +0200)
naja/scenes/win.py
patch
|
blob
|
history
diff --git
a/naja/scenes/win.py
b/naja/scenes/win.py
index f4df54f9858b47b6427c4323c90d81d32f613481..f14034a822ba5279aee6e0284f07ad9829af423c 100644
(file)
--- a/
naja/scenes/win.py
+++ b/
naja/scenes/win.py
@@
-5,9
+5,10
@@
Win scene.
import pygame.locals as pgl
from naja.constants import KEYS, PALETTE
import pygame.locals as pgl
from naja.constants import KEYS, PALETTE
+from naja.events import QuitGameEvent
+from naja.options import options
from naja.scenes.scene import Scene
from naja.widgets.text import TextWidget, TextBoxWidget
from naja.scenes.scene import Scene
from naja.widgets.text import TextWidget, TextBoxWidget
-from naja.events import QuitGameEvent
class WinScene(Scene):
class WinScene(Scene):
@@
-18,7
+19,9
@@
class WinScene(Scene):
def __init__(self, state):
super(WinScene, self).__init__(state)
self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE))
def __init__(self, state):
super(WinScene, self).__init__(state)
self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE))
- self.add(TextWidget((50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE))
+ if options.cheat_enabled:
+ self.add(TextWidget(
+ (50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE))
self.add(TextBoxWidget(
(50, 100), '\n'.join([
"You're great.",
self.add(TextBoxWidget(
(50, 100), '\n'.join([
"You're great.",