Commit 5d86bd6b by BellCodeEditor

auto save

parent 24ad999c
Showing with 5 additions and 10 deletions
......@@ -69,7 +69,7 @@ while True:
if jumpState == "runing":
if event.key == locals.K_SPACE:
jumpState = "up"
speed = 8 + score // 3
speed = 10 + score // 3
# 悟空造型
wukong = Player(hero[index])
if jumpState == "runing": # 跑步状态下
......@@ -86,13 +86,8 @@ while True:
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 30:
y += t
wukong.rect.y = y
t += 2
else:
jumpState = "runing"
t =30
if t <= 30
30
# 将背景图画上去
bg_x -= 1
......
{"第1名": 4, "第2名": 1, "第3名": 0}
\ No newline at end of file
{"第1名": 5, "第2名": 4, "第3名": 4}
\ No newline at end of file
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