Commit 7a0a273e by BellCodeEditor

save project

parent bca520ef
Showing with 4 additions and 1 deletions
...@@ -73,7 +73,10 @@ while True: ...@@ -73,7 +73,10 @@ while True:
road_x =0 road_x =0
screen.blit(road,(road_x,500)) # 路 screen.blit(road,(road_x,500)) # 路
screen.blit(wukong, (150, y)) # 悟空 screen.blit(wukong, (150, y)) # 悟空
time+=1
if time >=60:
time = 0
num = random.randint(0,50)
if aa.rect.x <= 0-aa.rect.width: # 障碍物消失 if aa.rect.x <= 0-aa.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