删除冗余

This commit is contained in:
星外之神 2022-05-13 22:58:14 +08:00
parent 5b7f00f9a2
commit 782a3a1a28

View File

@ -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