Commit fb2cf06c by BellCodeEditor

auto save

parent 91aa2a44
Showing with 9 additions and 6 deletions
......@@ -17,9 +17,9 @@ index = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
if event.type == locals.KEYDOWN:
if event.type == locals.KEYDOWN:
if event.key == locals.KEY_SPACE:
jiumState == "up"
if jiumState == "up":
......@@ -28,12 +28,15 @@ while True:
else:
jiumState == "down"
if jiumState == "down":
if y > 150:
y -=5
if y <400:
y +=5
else:
jiumState == "runing"
exit()
if i>4:
wukong = [index]
index += 1
if index = 5:
index = 0
if i>4:
i=0
wukong=hero[i]
i+=1
......
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