from ..loader import loader
from ..transforms import Overlay
from ..turnip import Turnip
-from ..constants import NIGHT_LENGTH
+from ..constants import NIGHT_LENGTH, DEBUG
class NightScene(BaseScene):
if ev.key in (pgl.K_q, pgl.K_ESCAPE):
from .menu import MenuScene
SceneChangeEvent.post(scene=MenuScene())
- if ev.key == pgl.K_e:
+ if ev.key == pgl.K_e and DEBUG:
self._to_day()
elif ev.type == pgl.MOUSEBUTTONDOWN:
if ev.button == 1:
def exit(self, gamestate):
turnip_data = [turnip.serialize() for turnip in self._turnips]
gamestate.turnips = turnip_data
+ gamestate.days += 1