Commit 52576591 by BellCodeEditor

save project

parent 6cafeb05
Showing with 7 additions and 0 deletions
......@@ -51,6 +51,12 @@ while True:
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, 400))
if rect.x <=0-rect.width:
obstacle = random.choice([bush,stong,cacti])
rect = obstacle.get_rect()
rect = 1000
rect = 500 - rect.height
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
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