self._turnips = []
self._seeds = gamestate.seeds
self._harvested = gamestate.harvested
+ self._paused = False
self._tool = None
for turnip_data in gamestate.turnips:
turnip = Turnip(space=self._space, **turnip_data)
if ev.key == pgl.K_e:
from .night import NightScene
SceneChangeEvent.post(scene=NightScene())
+ if ev.key == pgl.K_SPACE:
+ self._paused = not self._paused
elif ev.type == pgl.MOUSEBUTTONDOWN:
if ev.button == 1:
# Check tools
@debug_timer("day.tick")
def tick(self, gamestate):
- self._lights.tick()
+ if not self._paused:
+ self._lights.tick()
def _update_toolbar(self):
pass