Changeset 236 for trunk/src/pyspacewar/ui.py
- Timestamp:
- 01/05/07 02:09:01 (5 years ago)
- Files:
-
- 1 modified
-
trunk/src/pyspacewar/ui.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/ui.py
r235 r236 1852 1852 self._init_pygame() 1853 1853 self._init_trail_colors() 1854 self._load_sounds() 1854 1855 self._load_planet_images() 1855 1856 self._load_background() … … 1966 1967 # of subsequent blits 1967 1968 self.background_surface = scaled.convert() 1969 1970 def _load_sounds(self): 1971 """Load bitmaps of planets.""" 1972 self.fire_sound = pygame.mixer.Sound(find('sounds', 1973 'Gun_Silencer.wav')) 1968 1974 1969 1975 def _init_fonts(self): … … 2245 2251 if not self.ai_controlled[player_id]: 2246 2252 self.ships[player_id].launch() 2253 self.fire_sound.play() 2247 2254 2248 2255 def draw(self):
