Пример #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()
Пример #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()
Пример #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)
Пример #4
0
 def set_world(self, world):
     KeyControls.set_world(self, world)
     self.player_ship = PlayerShip(self.world)
Пример #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)
Пример #6
0
 def set_world(self, world):
     KeyControls.set_world(self, world)
     self.player_ship = PlayerShip(self.world)