示例#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)