Commit b4a82f64 by BellCodeEditor

save project

parent d88dc7c9
Showing with 1 additions and 3 deletions
......@@ -66,7 +66,7 @@ while True:
jumpState = "up"
# 悟空造型
speed=8+speed//3
speed=8+score//3
wukong = Player(hero[index])
if jumpState == "runing": # 跑步状态下
index += 1
......@@ -95,12 +95,10 @@ while True:
if bg_x<=-1000:
bg_x = 0
screen.blit(background, (bg_x, 0)) # 远景
road_x -= speed
if road_x<=-1000:
road_x = 0
screen.blit(road, (road_x, 500)) # 道路
screen.blit(wukong.image, (150, y)) # 悟空
time += 1
if time >= 60: # 创建障碍物精灵
......
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