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