comparison pytouhou/vm/eclrunner.py @ 343:94fdb6c782c1

Implement sfx for player and enemies.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 04 Jul 2012 23:41:28 +0200
parents 1bb78c469f64
children 862011266f2c
comparison
equal deleted inserted replaced
342:83c9354ff3ef 343:94fdb6c782c1
826 826
827 827
828 @instruction(105) 828 @instruction(105)
829 def set_damageable(self, damageable): 829 def set_damageable(self, damageable):
830 self._enemy.damageable = bool(damageable & 1) 830 self._enemy.damageable = bool(damageable & 1)
831
832
833 @instruction(106)
834 def play_sound(self, index):
835 self._enemy.play_sound(index)
831 836
832 837
833 @instruction(107) 838 @instruction(107)
834 def set_death_flags(self, death_flags): 839 def set_death_flags(self, death_flags):
835 self._enemy.death_flags = death_flags 840 self._enemy.death_flags = death_flags