Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -830,6 +830,11 @@ class ECLRunner(object): self._enemy.damageable = bool(damageable & 1) + @instruction(106) + def play_sound(self, index): + self._enemy.play_sound(index) + + @instruction(107) def set_death_flags(self, death_flags): self._enemy.death_flags = death_flags