Commit e7842048 by BellCodeEditor

save project

parent f9068267
Showing with 8 additions and 2 deletions
......@@ -16,8 +16,9 @@ hero = [ pygame.image.load('hero1.png')
pygame.image.load('hero3.png')
pygame.image.load('hero4.png')
pygame.image.load('hero5.png')]
ingex=0
jumpState="runing"
y=400
index = 0
......@@ -26,6 +27,11 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type==locals.KEYDOWN
if event.key==locals.K_SPACE
jumpState="up"
if jumpState=="up"
wukong=hero[ingex]
ingex+=1
if ingex==5
......
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