From 782a3a1a283206a7d390139e9799d28435921076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 13 May 2022 22:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index 1203a99..61a37ba 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -22,9 +22,7 @@ class Car(pg.sprite.Sprite): def update(self, game_info): self.current_time = game_info[c.CURRENT_TIME] - if self.state == c.IDLE: - pass - elif self.state == c.WALK: + if self.state == c.WALK: self.rect.x += 4 if self.rect.x > c.SCREEN_WIDTH: self.dead = True