Mercurial > touhou
diff pytouhou/game/game.py @ 341:61caded6b4f5
Clean music playback API a little.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 04 Jul 2012 23:05:21 +0200 |
parents | 7a05edbab88a |
children | 94fdb6c782c1 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -116,14 +116,6 @@ class Game(object): self.difficulty = self.difficulty_max - def change_music(self, track): - #TODO: don’t crash if the track has already be played. - bgm = self.bgms[track] - if bgm: - self.music.queue(bgm) - self.music.next() - - def enable_spellcard_effect(self): self.spellcard_effect = Effect((-32., -16.), 0, self.spellcard_effect_anm_wrapper) #TODO: find why this offset is necessary.