Commit fec051cf by BellCodeEditor

save project

parent dc3c0ed8
Showing with 4 additions and 2 deletions
......@@ -27,11 +27,12 @@ while True:
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'
wukong = hero[int(index)]
index += 0.25
if jumpstate == 'running':
index += 0.25
while index >= 5:
index -= 5
......@@ -47,6 +48,7 @@ while True:
t += 2
else:
jumpstate = 'running'
t = 30
screen.blit(bg,(0,0))
screen.blit(wukong,(150,y))
screen.blit(road,(0,500))
......
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