def draw(self): self.window.clear() self.window.draw(SceneMaster.get()) self.window.display()
def update(self, dt): SceneMaster.get().update(dt)
def process_events(self): for event in self.window.events: self.events(event) SceneMaster.get().events(event)
def current_scene(self): return SceneMaster.get().current
def pop_scene(self): SceneMaster.get().pop()
def push_scene(self, scene): SceneMaster.get().push(scene)
def play_scene(self, scene): SceneMaster.get().switch(scene)
def add_scene(self, scene): SceneMaster.get().add(scene)