Commit 05b3814d by BellCodeEditor

save project

parent 78b0bba7
Showing with 10 additions and 1 deletions
......@@ -27,7 +27,16 @@ while True:
exit()
if event.tape == locals.KEYDOWN:
if event.key == locals.K_SPACE:
jumpState = "UP"
jumpState = "UP":
if y > 150:
y -= 5
else:
jumpState = "down"
if jumpState == "down":
if y < 400:
else:
jumpState = "runing"
wukong = hero[index]
index+=1
if index==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