Commit 393c607d by BellCodeEditor

auto save

parent 28aafcf4
Showing with 6 additions and 5 deletions
......@@ -27,8 +27,8 @@ while True:
exit()
if event.type == locals.KEYDOWN:
if c=="runing":
if event.key == locals.K_SPACE:
c="up"
if event.key == locals.K_SPACE:
c="up"
if c=="up":
if t > 0:
y-=t
......@@ -42,11 +42,12 @@ while True:
else:
c="runing"
t=30
b=hero[a]
if c=="runing":
a+=1
if a==5:
a=0
a+=1
if a==5:
a=0
# 将背景图画上去
screen.blit(background, (0, 0))
......
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