From 7aa5c8265ed55e734229c974cb6df82d3af32195 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, 8 Apr 2022 15:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/component/zombie.py b/source/component/zombie.py index 0f05c89..a150df7 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -32,7 +32,7 @@ class Zombie(pg.sprite.Sprite): self.animate_timer = 0 self.attack_timer = 0 self.state = c.WALK - self.animate_interval = 150 + self.animate_interval = 200 self.ice_slow_ratio = 1 self.ice_slow_timer = 0 self.hit_timer = 0 @@ -125,6 +125,7 @@ class Zombie(pg.sprite.Sprite): def setLostHead(self): self.losthead_timer = self.current_time self.lostHead = True + self.animate_interval = 90 if self.head_group is not None: self.head_group.add(ZombieHead(self.rect.centerx, self.rect.bottom)) @@ -209,12 +210,13 @@ class Zombie(pg.sprite.Sprite): def setDie(self): self.state = c.DIE - self.animate_interval = 200 + self.animate_interval = 100 self.changeFrames(self.die_frames) def setBoomDie(self): + self.health = 0 self.state = c.DIE - self.animate_interval = 200 + self.animate_interval = 100 self.changeFrames(self.boomdie_frames) def setFreeze(self, ice_trap_image):