Automatically load a station for now.
authorSimon Cross <hodgestar@gmail.com>
Tue, 6 Sep 2016 18:53:36 +0000 (20:53 +0200)
committerSimon Cross <hodgestar@gmail.com>
Tue, 6 Sep 2016 18:53:36 +0000 (20:53 +0200)
tabakrolletjie/scenes/menu.py

index 33bb0ef8ae393d6f9d12e788c2ee3e5a5f76cef2..ed7cc3194ff34105a08ef3c5c1630f549502502a 100644 (file)
@@ -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))