From 700ebaa7c4cd23e583464fb0ab091b95f17c6434 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:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=B0=8F=E6=8E=A8=E8=BD=A6?= =?UTF-8?q?=E5=AD=98=E6=B4=BB=E8=8C=83=E5=9B=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 acd6c9d..26ba88b 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -24,7 +24,7 @@ class Car(pg.sprite.Sprite): self.current_time = game_info[c.CURRENT_TIME] if self.state == c.WALK: self.rect.x += 4 - if self.rect.x > c.SCREEN_WIDTH: + if self.rect.x > c.SCREEN_WIDTH + 40: self.dead = True def setWalk(self):