Changeset 245 for trunk/src/pyspacewar/ui.py
- Timestamp:
- 01/05/07 03:25:05 (5 years ago)
- Files:
-
- 1 modified
-
trunk/src/pyspacewar/ui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/ui.py
r244 r245 2011 2011 self.ships = self.game.ships 2012 2012 for ship in self.ships: 2013 ship.launch_effect = self.launch_effect_Ship 2013 2014 ship.bounce_effect = self.bounce_effect_Ship 2014 2015 ship.hit_effect = self.hit_effect_Ship … … 2270 2271 if not self.ai_controlled[player_id]: 2271 2272 self.ships[player_id].launch() 2273 2274 def launch_effect_Ship(self, ship, obstacle): 2275 """Play a sound effect when the player's ship bounces off something.""" 2276 player_id = self.ships.index(ship) 2277 if not self.ai_controlled[player_id]: 2272 2278 self.fire_sound.play() 2273 2279
