Commit 87cf7351 by BellCodeEditor

save project

parent 4b3b29a2
Showing with 1 additions and 1 deletions
......@@ -76,7 +76,7 @@ while True:
if obstacle.rect.x <= 0-obstacle.rect.width: # 障碍物消失
# 创建障碍物对象
obstacle = Block(stone , cacti ,bush)
rect.x -= 8
obstacle.rect.x -= 8
screen.blit(obstacle.image, (obstacle.rect.x,obstacle.rect.y))
# 刷新画面
pygame.display.update()
......
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