From e2d211036d054ed0529e4f8c37fdbd0056eee049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sat, 4 Jun 2022 15:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E6=85=A2=E6=8D=A2=E8=A1=8C=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/zombie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/zombie.py b/source/component/zombie.py index 1e6c517..676b584 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -208,7 +208,7 @@ class Zombie(pg.sprite.Sprite): if self.targetYChange < 0: self.setWalk() if self.rect.bottom > self.originalY + self.targetYChange: # 注意这里加的是负数 - self.rect.bottom -= 3 + self.rect.bottom -= 2 # 过半时换行 if ((self.toChangeGroup) and (self.rect.bottom >= self.originalY + 0.5*self.targetYChange)): @@ -221,7 +221,7 @@ class Zombie(pg.sprite.Sprite): elif self.targetYChange > 0: self.setWalk() if self.rect.bottom < self.originalY + self.targetYChange: # 注意这里加的是负数 - self.rect.bottom += 3 + self.rect.bottom += 2 # 过半时换行 if ((self.toChangeGroup) and (self.rect.bottom <= self.originalY + 0.5*self.targetYChange)):