From: Simon Cross Date: Tue, 6 Sep 2016 18:53:36 +0000 (+0200) Subject: Automatically load a station for now. X-Git-Tag: tabakrolletjie-v1.0.0~229 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e93e21e8016e96e4808d47af6b4c2ea128ebb5f8;p=tabakrolletjie.git Automatically load a station for now. --- diff --git a/tabakrolletjie/scenes/menu.py b/tabakrolletjie/scenes/menu.py index 33bb0ef..ed7cc31 100644 --- a/tabakrolletjie/scenes/menu.py +++ b/tabakrolletjie/scenes/menu.py @@ -7,6 +7,11 @@ from ..events import QuitEvent, SceneChangeEvent 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))