""" Menu scene. """
-import pygame.event
import pygame.locals as pgl
from .base import BaseScene
class MenuScene(BaseScene):
+ def enter(self, gamestate):
+ if gamestate.station is None:
+ print "Loading Station Alpha ..."
+ gamestate.load_station("station-alpha.json")
+
def render(self, surface, gamestate):
surface.fill((0, 255, 0))
elif ev.key == pgl.K_n:
from .night import NightScene
SceneChangeEvent.post(scene=NightScene())
+ elif ev.key == pgl.K_d:
+ from .day import DayScene
+ SceneChangeEvent.post(scene=DayScene())
+ elif ev.key == pgl.K_l:
+ print "Loading Station Alpha ..."
+ gamestate.load_station("station-alpha.json")