Mercurial > touhou
diff pytouhou/game/game.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 | 61caded6b4f5 |
children | 488c094ed51d |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -328,6 +328,7 @@ class Game(object): elif laser.check_grazing((px, py)): player.state.graze += 1 #TODO player.state.score += 500 #TODO + player.play_sound('graze') self.modify_difficulty(+6) #TODO self.new_particle((px, py), 0, .8, 192) #TODO @@ -351,6 +352,7 @@ class Game(object): bullet.grazed = True player.state.graze += 1 player.state.score += 500 # found experimentally + player.play_sound('graze') self.modify_difficulty(+6) self.new_particle((px, py), 0, .8, 192) #TODO: find the real size and range. #TODO: display a static particle during one frame at