From 2d1ca899e337894e41202643741afbe967d22408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 11 May 2022 17:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=A4=A7=E5=96=B7=E8=8F=87?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 4 ++-- source/state/level.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index 1336deb..87f3444 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -165,7 +165,7 @@ class Fume(pg.sprite.Sprite): def update(self, game_info): self.current_time = game_info[c.CURRENT_TIME] - if self.current_time - self.timer >= 140: + if self.current_time - self.timer >= 100: self.frame_index += 1 if self.frame_index >= self.frame_num: self.frame_index = self.frame_num - 1 @@ -1668,7 +1668,7 @@ class FumeShroom(Plant): def attacking(self): if self.shoot_timer == 0: self.shoot_timer = self.current_time - 700 - elif self.current_time - self.shoot_timer >= 1200: + elif self.current_time - self.shoot_timer >= 1100: if self.showAttackFrames: self.showAttackFrames = False self.changeFrames(self.attack_frames) diff --git a/source/state/level.py b/source/state/level.py index 787e45d..6000e86 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -1122,7 +1122,7 @@ class Level(tool.State): def checkCarCollisions(self): for car in self.cars: for zombie in self.zombie_groups[car.map_y]: - if zombie and zombie.state != c.DIE and (not zombie.lostHead) and zombie.rect.centerx <= 0: + if zombie and zombie.state != c.DIE and (not zombie.lostHead) and (zombie.rect.centerx <= 0): car.setWalk() if zombie.rect.centerx <= car.rect.x: zombie.health = 0