Commit fb2cf06c by BellCodeEditor

auto save

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