Commit 4dc956e5 by BellCodeEditor

auto save

parent 25691b83
Showing with 2 additions and 3 deletions
...@@ -29,7 +29,7 @@ while True: ...@@ -29,7 +29,7 @@ while True:
exit() # 接收到退出事件后退出程序 exit() # 接收到退出事件后退出程序
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if jumpstate == "running" : # if jumpstate == "running" :
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpstate = "up" jumpstate = "up"
...@@ -40,7 +40,7 @@ while True: ...@@ -40,7 +40,7 @@ while True:
else: else:
jumpstate = "down" jumpstate = "down"
if jumpstate == "down": #降落 if jumpstate == "down" : #降落
if t <= 30: if t <= 30:
y += t y += t
t += 2 t += 2
...@@ -51,7 +51,6 @@ while True: ...@@ -51,7 +51,6 @@ while True:
index += 1 index += 1
if index == 5: if index == 5:
index = 0 index = 0
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
screen.blit(road, (0, 500)) screen.blit(road, (0, 500))
......
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