Commit abf08c66 by BellCodeEditor

auto save

parent af10c50f
Showing with 5 additions and 5 deletions
...@@ -30,7 +30,7 @@ shan_x=0 ...@@ -30,7 +30,7 @@ shan_x=0
index = 0 index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 60
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
while True: while True:
...@@ -50,12 +50,12 @@ while True: ...@@ -50,12 +50,12 @@ while True:
else: else:
jumpState = "down" jumpState = "down"
if jumpState == "down": # 降落状态 if jumpState == "down": # 降落状态
if t <= 30: if t <= 60:
y += t y += t
t += 2 t += 2
else: else:
jumpState = "runing" jumpState = "runing"
t =30 t =60
# 悟空造型 # 悟空造型
wukong = hero[index] wukong = hero[index]
...@@ -68,8 +68,8 @@ while True: ...@@ -68,8 +68,8 @@ while True:
if shan_x <-1000: if shan_x <-1000:
shan_x=0 shan_x=0
screen.blit(background, (shan_x, 0)) # 远处背景 screen.blit(background, (shan_x, 0)) # 远处背景
lu_x -=8 lu_x -=20
if lu_x <-1000: if lu_x <-500:
lu_x=0 lu_x=0
screen.blit(road, (lu_x, 500)) # 路 screen.blit(road, (lu_x, 500)) # 路
screen.blit(wukong, (150, y)) # 悟空 screen.blit(wukong, (150, y)) # 悟空
......
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