Commit 13f32038 by BellCodeEditor

save project

parent cd06af91
Showing with 5 additions and 4 deletions
......@@ -22,14 +22,15 @@ y=400
while True:
wukong=hero[index]
index+=1
if index>4:
index = 0
if jumpstate=='running':
index+=1
if index>4:
index = 0
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type==locals.KEYDOWN:
if event.type==locals.KEYDOWN and jumpstate=='running':
if event.key==locals.K_SPACE:
jumpstate="up"
if jumpstate=="up":
......
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