更改小推车机制

This commit is contained in:
星外之神 2022-08-01 22:54:21 +08:00
parent 0f59007e82
commit 205ec949e1

View File

@ -22,7 +22,7 @@ class Car(pg.sprite.Sprite):
def update(self, game_info):
self.current_time = game_info[c.CURRENT_TIME]
if self.state == c.WALK:
self.rect.x += 4
self.rect.x += 6
if self.rect.x > c.SCREEN_WIDTH + 60:
self.dead = True