Commit f408d6dd by BellCodeEditor

save project

parent 4fdf84e7
Showing with 2 additions and 2 deletions
......@@ -61,12 +61,12 @@ while True:
screen.blit(road, (0, 500))
screen.blit(wukong, (150, y))
if rect.x < = 0-rect.width:
if rect.x <= 0-rect.width:
obsstacle = random.choice([bush,stone,cacti])
rect = obsstacle.get_rect()
rect.x = 1000
rect.y = 500 - rect.height
# 刷新画面
pygame.display.update()
FPS.tick(30)
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