Commit ac101491 by BellCodeEditor

save project

parent e4e87b4b
Showing with 2 additions and 2 deletions
...@@ -114,10 +114,10 @@ while True: ...@@ -114,10 +114,10 @@ while True:
screen.blit(wukong.image, (150, y)) # 悟空 screen.blit(wukong.image, (150, y)) # 悟空
time += 1 time += 1
if time >= 60: # 创建障碍物精灵 if time >= 50: # 创建障碍物精灵
time = 0 time = 0
num = random.randint(0,50) num = random.randint(0,50)
if num > 20: if num > 15:
obstacle = Block(bush,cacti,stone) obstacle = Block(bush,cacti,stone)
block_list.add(obstacle) block_list.add(obstacle)
for sprite in block_list: # 遍历、展示障碍物精灵 for sprite in block_list: # 遍历、展示障碍物精灵
......
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