Commit c1200539 by BellCodeEditor

save project

parent 7bbeb077
Showing with 7 additions and 1 deletions
......@@ -73,7 +73,13 @@ while True:
lu_x=0
screen.blit(road, (lu_x, 500)) # 路
screen.blit(wukong, (150, y)) # 悟空
time+=1
if num>=60
time=0
num=random.randint(0,50)
if num>20:
obstacle=Block(bush,cacti,stone)
Block_list.add(obstacle)
if obstacle.rect.x <= 0-obstacle.rect.width: # 障碍物消失
# 创建障碍物对象
obstacle=Block(bush,cacti,stone)
......
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