Commit 4dc956e5 by BellCodeEditor

auto save

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