diff --git a/resources/sound/zomboniExplosion.ogg b/resources/sound/zomboniExplosion.ogg new file mode 100644 index 0000000..4ba74cb Binary files /dev/null and b/resources/sound/zomboniExplosion.ogg differ diff --git a/source/component/zombie.py b/source/component/zombie.py index 52ec289..1742254 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -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() +