Commit cf74a130 by BellCodeEditor

save project

parent 52086e55
Showing with 3 additions and 1 deletions
......@@ -29,15 +29,17 @@ while True:
# 接收到退出事件后退出程序
exit()
if event.type == locals.KEYDOWN:
if key.type == locals.K_SPACE:
if event.key == locals.K_SPACE:
jumps="up"
if jumps=="up":
if y>150:
y-=5
else:
jumps="down"
if jumps=="down":
if y<400:
y+=5
else:
jumps="running"
......
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