Esempio n. 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()
Esempio n. 2
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()
Esempio n. 3
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)
Esempio n. 4
0
 def set_world(self, world):
     KeyControls.set_world(self, world)
     self.player_ship = PlayerShip(self.world)
Esempio n. 5
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)
Esempio n. 6
0
 def set_world(self, world):
     KeyControls.set_world(self, world)
     self.player_ship = PlayerShip(self.world)