Commit 5d86bd6b by BellCodeEditor

auto save

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