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.events import QuitGameEvent
class WinScene(Scene):
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.",