From 9dc66c1b7a9db5112f0ef35fb8a6bf98f406620f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sun, 10 Apr 2022 21:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E5=B0=8F=E5=8F=8C=E5=8F=91=E5=B0=84?= =?UTF-8?q?=E6=89=8B=E4=B8=A4=E5=8F=91=E4=B9=8B=E9=97=B4=E7=9A=84=E9=97=B4?= =?UTF-8?q?=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index a4beaae..065b68d 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -95,7 +95,7 @@ class Bullet(pg.sprite.Sprite): if self.rect.x > c.SCREEN_WIDTH: self.kill() elif self.state == c.EXPLODE: - if (self.current_time - self.explode_timer) > 500: + if (self.current_time - self.explode_timer) > 250: self.kill() def setExplode(self): @@ -301,7 +301,7 @@ class RepeaterPea(Plant): self.bullet_group.add(Bullet(self.rect.right - 15, self.rect.y, self.rect.y, c.BULLET_PEA, c.BULLET_DAMAGE_NORMAL, False)) self.shoot_timer = self.current_time - elif self.firstShot and (self.current_time - self.shoot_timer) > 200: + elif self.firstShot and (self.current_time - self.shoot_timer) > 100: self.firstShot = False self.bullet_group.add(Bullet(self.rect.right - 15, self.rect.y, self.rect.y, c.BULLET_PEA, c.BULLET_DAMAGE_NORMAL, False))