Example #1
0
 def draw(self):
     self.window.clear()
     self.window.draw(SceneMaster.get())
     self.window.display()
Example #2
0
 def update(self, dt):
     SceneMaster.get().update(dt)
Example #3
0
    def process_events(self):
        for event in self.window.events:
            self.events(event)

            SceneMaster.get().events(event)
Example #4
0
 def current_scene(self):
     return SceneMaster.get().current
Example #5
0
 def pop_scene(self):
     SceneMaster.get().pop()
Example #6
0
 def push_scene(self, scene):
     SceneMaster.get().push(scene)
Example #7
0
 def play_scene(self, scene):
     SceneMaster.get().switch(scene)
Example #8
0
 def add_scene(self, scene):
     SceneMaster.get().add(scene)