From cc70ff46f7d32b3f5bcebe2d1c2ee5f01ae99b3d 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, 14 May 2022 00:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=9D=A8=E6=A1=83=E5=AD=90?= =?UTF-8?q?=E5=BC=B9=E5=AD=98=E5=9C=A8=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/component/plant.py b/source/component/plant.py index 61a37ba..acd6c9d 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -206,7 +206,7 @@ class StarBullet(Bullet): else: self.rect.x -= 10 self.handleMapYPosition() - if ((self.rect.x > c.SCREEN_WIDTH) or (self.rect.x < -20) + if ((self.rect.x > c.SCREEN_WIDTH + 40) or (self.rect.x < -20) or (self.rect.y > c.SCREEN_HEIGHT) or (self.rect.y < 0)): self.kill() elif self.state == c.EXPLODE: