Commit 8fa927a1 by BellCodeEditor

save project

parent 36fba0b4
Showing with 6 additions and 2 deletions
......@@ -23,7 +23,8 @@ while True:
exit()
if event.type == locals.KEYDOWN:
if event.key ==locals.K_SPACE:
jumpstart="up"
if jumpstart == "run":
jumpstart="up"
if jumpstart == "up":
if y>150:
y-=5
......@@ -35,7 +36,10 @@ while True:
else:
jumpstart="run"
wukong=pygame.image.load(hero[index])
index+=1
if jumpstart == "run":
index+=1
else:
index=0
if index>4:
index=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