更改小推车存活范围

This commit is contained in:
星外之神 2022-05-14 00:32:42 +08:00
parent cc70ff46f7
commit 700ebaa7c4

View File

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