Exemple #1
0
 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()
Exemple #2
0
 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)
Exemple #3
0
 def set_world(self, world):
     KeyControls.set_world(self, world)
     self.player_ship = PlayerShip(self.world)