Commit 3498a37d by BellCodeEditor

save project

parent 2418c5bf
Showing with 6 additions and 0 deletions
...@@ -85,6 +85,11 @@ while True: ...@@ -85,6 +85,11 @@ while True:
rect.y = 500 - rect.height rect.y = 500 - rect.height
rect.x -= 8 rect.x -= 8
screen.blit(obstacle, (rect.x, rect.y)) screen.blit(obstacle, (rect.x, rect.y))
if changaiuw.rect.x<=o-changaiuw.rect.width:
changaiuw=Block(bush,stone,cacti)
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) 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