增加冰车爆炸音效

This commit is contained in:
星外之神 2022-05-14 16:29:11 +08:00
parent 0bfb48ea7c
commit 9260c88e5a
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -1011,4 +1011,12 @@ class Zomboni(Zombie):
self.plant_group.add(self.IceFrozenPlot(x, y))
self.map.map[mapY][mapX][c.MAP_PLANT].add(c.ICE_FROZEN_PLOT)
self.speed = max(0.6, 1.5 - (c.GRID_X_LEN - mapX)*0.225)
self.speed = max(0.6, 1.5 - (c.GRID_X_LEN + 1 - mapX)*0.225)
def setDie(self):
self.state = c.DIE
self.animate_interval = self.die_animate_interval
self.changeFrames(self.die_frames)
# 播放冰车爆炸音效
pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "zomboniExplosion.ogg")).play()