Changeset 240
- Timestamp:
- 01/05/07 02:54:19 (5 years ago)
- Location:
- trunk/src/pyspacewar
- Files:
-
- 1 added
- 1 modified
-
sounds/briefcs1.wav (added)
-
ui.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/ui.py
r239 r240 1383 1383 action = self.menu_items[self.menu.selected_item][1:] 1384 1384 if action: 1385 self.ui.menu_sound.play() 1385 1386 handler = action[0] 1386 1387 args = action[1:] … … 1976 1977 self.hit_sound = pygame.mixer.Sound(find('sounds', 'Grenade2.wav')) 1977 1978 self.explode_sound = pygame.mixer.Sound(find('sounds', 'bomb.wav')) 1979 self.menu_sound = pygame.mixer.Sound(find('sounds', 'briefcs1.wav')) 1978 1980 1979 1981 def _init_fonts(self): … … 2125 2127 def main_menu(self): 2126 2128 """Enter the main menu.""" 2129 self.menu_sound.play() 2127 2130 self.ui_mode = MainMenuMode(self) 2128 2131 … … 2168 2171 def game_menu(self): 2169 2172 """Enter the game menu.""" 2173 self.menu_sound.play() 2170 2174 self.ui_mode = GameMenuMode(self) 2171 2175
