Commit 91aa2a44 by BellCodeEditor

save project

parent 33a9a8a1
Showing with 13 additions and 0 deletions
......@@ -19,6 +19,19 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
if event.type == locals.KEYDOWN:
if event.key == locals.KEY_SPACE:
jiumState == "up"
if jiumState == "up":
if y > 150:
y -=5
else:
jiumState == "down"
if jiumState == "down":
if y > 150:
y -=5
else:
jiumState == "runing"
exit()
if i>4:
i=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