Commit c2024947 by BellCodeEditor

save project

parent 51a3a2b2
Showing with 2 additions and 1 deletions
...@@ -83,7 +83,7 @@ while True: ...@@ -83,7 +83,7 @@ while True:
# 创建障碍物对象 # 创建障碍物对象
obstacle = block.([bush,stone,cacti]) obstacle = block.([bush,stone,cacti])
obstacle.rect.x-=8 obstacle.rect.x-=8
screen.blit(obstacle, (rect.x, rect.y)) screen.blit(obstacle,image, (obstacle,rect.x, rect.y))
# 刷新画面 # 刷新画面
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