Commit b4a82f64 by BellCodeEditor

save project

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