if ev.key in (pgl.K_q, pgl.K_ESCAPE):
from .menu import MenuScene
SceneChangeEvent.post(scene=MenuScene())
+ if ev.key == pgl.K_e:
+ from .night import NightScene
+ SceneChangeEvent.post(scene=NightScene())
elif ev.type == pgl.MOUSEBUTTONDOWN:
if ev.button == 1:
# Check tools
if ev.key in (pgl.K_q, pgl.K_ESCAPE):
from .menu import MenuScene
SceneChangeEvent.post(scene=MenuScene())
+ if ev.key == pgl.K_e:
+ from .day import DayScene
+ SceneChangeEvent.post(scene=DayScene())
elif ev.type == pgl.MOUSEBUTTONDOWN:
if ev.button == 1:
self._lights.toggle_nearest(ev.pos, surfpos=True)