Commit bbcbe217 by BellCodeEditor

save project

parent d7b9f423
Showing with 1 additions and 0 deletions
......@@ -79,6 +79,7 @@ while True:
if obstacle.rect.x <=0-obstacle.rect.width:
obstacle=Block(bush,cacti,stone)
obstacle.rect.x-=8
screen.blit(obstacle.image,(obstacle.rect.x,obstacle.rect.y))
if rect.x <= 0-rect.width: # 障碍物消失
# 创建障碍物对象
......
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