Changeset 591:8dcf5176ffd8 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 9:28:20 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Door sound.

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r585 r591  
    1515from nagslang.resources import resources
    1616from nagslang.events import DoorEvent
     17from nagslang.sound import sound
    1718
    1819
     
    405406
    406407    def door_opened(self):
    407         pass
     408        sound.play_sound('robotstep2.ogg')
    408409
    409410
     
    469470    def door_opened(self):
    470471        self._stored_state['is_open'] = True
     472        super(PuzzleDoor, self).door_opened()
    471473
    472474    def set_stored_state_dict(self, stored_state):
  • nagslang/sound.py

    r292 r591  
    6464
    6565    def stop(self):
    66         mixer.stop()
     66        mixer.fadeout(1000)
    6767        mixer.music.stop()
    6868
Note: See TracChangeset for help on using the changeset viewer.