Commit 5fc37e1b by BellCodeEditor

save project

parent fa17b033
Showing with 6 additions and 0 deletions
......@@ -72,6 +72,12 @@ while True:
screen.blit(background, (0, 0)) # 远处背景
screen.blit(road, (0, 500)) # 路
screen.blit(wukong, (150, y)) # 悟空
time += 1
if time >= 60:
time = 0
num = random.randint(0,50)
if num > 20:
obstacle
if obstacle.rect.x <= 0-obstacle.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