Changeset 620:b0f6259a5a87 for nagslang


Ignore:
Timestamp:
09/07/13 22:53:29 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
62333930393438646263343063666663666234613966623731623831306432306131633634633231
Message:

Alien Death Sounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r612 r620  
    1515from nagslang.resources import resources
    1616from nagslang.utils import vec_with_length
     17from nagslang.sound import sound
    1718
    1819
     
    162163                                     self.physicser.position,
    163164                                     self.enemy_type),)
     165            self.play_death_sound()
    164166        self.move(result)
    165167        self.attack(result)
    166168        return result
     169
     170    def play_death_sound(self):
     171        sound.play_sound("synth_detuned1.ogg")
    167172
    168173    @classmethod
     
    378383        self.set_direction(*self.random_move())
    379384
     385    def play_death_sound(self):
     386        sound.play_sound("eviltoy1.ogg")
     387
    380388    @classmethod
    381389    def requires(cls):
Note: See TracChangeset for help on using the changeset viewer.