Commit 2fa71b6f by BellCodeEditor

save project

parent c0eed57c
Showing with 9 additions and 1 deletions
......@@ -49,7 +49,14 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong, (150, 400))
screen.blit(wukong, (150, y))
if rect.x<=0-rect.width:
object=random.choice([bush,stone,cacti])
rest=object.get_rest()
rest.x=1000
rest.y=500-rest.height
rest_x-=8
screen.blit(obstacle,(rest_x,rest_y))
# 刷新画面
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