Changeset 240

Show
Ignore:
Timestamp:
01/05/07 02:54:19 (5 years ago)
Author:
mg
Message:

Menu sounds.

Location:
trunk/src/pyspacewar
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pyspacewar/ui.py

    r239 r240  
    13831383        action = self.menu_items[self.menu.selected_item][1:] 
    13841384        if action: 
     1385            self.ui.menu_sound.play() 
    13851386            handler = action[0] 
    13861387            args = action[1:] 
     
    19761977        self.hit_sound = pygame.mixer.Sound(find('sounds', 'Grenade2.wav')) 
    19771978        self.explode_sound = pygame.mixer.Sound(find('sounds', 'bomb.wav')) 
     1979        self.menu_sound = pygame.mixer.Sound(find('sounds', 'briefcs1.wav')) 
    19781980 
    19791981    def _init_fonts(self): 
     
    21252127    def main_menu(self): 
    21262128        """Enter the main menu.""" 
     2129        self.menu_sound.play() 
    21272130        self.ui_mode = MainMenuMode(self) 
    21282131 
     
    21682171    def game_menu(self): 
    21692172        """Enter the game menu.""" 
     2173        self.menu_sound.play() 
    21702174        self.ui_mode = GameMenuMode(self) 
    21712175