def set_world(self, world): KeyControls.set_world(self, world) self.level = 0 self.lives = 3 self.score = 0 self.player_ship = PlayerShip(self.world) self.start_level()
def on_key_press(self, key, modifiers): """Start the world with any key if paused""" if not self.world.running: self.world.running = True KeyControls.on_key_press(self, key, modifiers)
def set_world(self, world): KeyControls.set_world(self, world) self.player_ship = PlayerShip(self.world)