diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-01-28 11:48:41 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-01-28 11:48:41 +0700 |
commit | 1b2dc5e1692e9d7b010aa9822d228f4fc3c5ac1e (patch) | |
tree | cc0c976fb57493055b489654cb4085548d18c45a /brutalmaze/characters.py | |
parent | fca23ea3ce86461f1b970afeb87fcbf5c3a124d3 (diff) | |
download | brutalmaze-1b2dc5e1692e9d7b010aa9822d228f4fc3c5ac1e.tar.gz |
Make all sound playing fail-safe 0.4.2
Diffstat (limited to 'brutalmaze/characters.py')
-rw-r--r-- | brutalmaze/characters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/brutalmaze/characters.py b/brutalmaze/characters.py index c47e22e..262578e 100644 --- a/brutalmaze/characters.py +++ b/brutalmaze/characters.py @@ -79,7 +79,7 @@ class Hero: self.wound -= HEAL_SPEED / self.spin_speed / HERO_HP if self.wound < 0: self.wound = 0.0 if time > self.next_beat: - self.sfx_heart.play() + play(self.sfx_heart) self.next_beat = time + MIN_BEAT*(2 - self.wound/HERO_HP) if self.slashing and time >= self.next_strike: |