Mercurial > touhou
diff pytouhou/game/item.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 | 13201d90bb22 |
children | 690b5faaa0e6 |
line wrap: on
line diff
--- a/pytouhou/game/item.py +++ b/pytouhou/game/item.py @@ -80,6 +80,7 @@ class Item(object): score = 0 label = None color = 'white' + player.play_sound('item00') if self._type == 0 or self._type == 2: # power or big power if old_power < 128: @@ -134,6 +135,7 @@ class Item(object): if player_state.lives < 8: player_state.lives += 1 self._game.modify_difficulty(+200) + player.play_sound('extend') elif self._type == 6: # star score = 500