Commit 3f2c66ad by BellCodeEditor

auto save

parent c4171a7f
Showing with 2 additions and 3 deletions
......@@ -67,7 +67,7 @@ while True:
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, y))
#一个障碍物消失后,在添加一个新的障碍物
if rect.x<=0-rect.width:
obstacle=random.choice(zaw)
rect=obstacle.get_rect()
......@@ -81,4 +81,4 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(60)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment