Commit abf08c66 by BellCodeEditor

auto save

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