From 9303304e94aabd4f955c3c186ff73525057bb133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 3 Jun 2022 14:21:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E7=BA=B8=E5=83=B5?= =?UTF-8?q?=E5=B0=B8=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/component/zombie.py b/source/component/zombie.py index 530c7f3..5eb92c1 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -210,6 +210,7 @@ class Zombie(pg.sprite.Sprite): self.helmetType2 = False if self.name == c.NEWSPAPER_ZOMBIE: self.speed = 2.65 + self.walk_animate_interval = 300 if (((self.current_time - self.attack_timer) > (c.ATTACK_INTERVAL * self.getAttackTimeRatio())) and (not self.lostHead)): if self.prey.health > 0: @@ -700,6 +701,7 @@ class NewspaperZombie(Zombie): self.changeFrames(self.walk_frames) self.speedUp = True self.speed = 2.65 + self.walk_animate_interval = 300 # 触发报纸僵尸暴走音效 pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "newspaperZombieAngry.ogg")).play() return