Commit 907344e5 by BellCodeEditor

save project

parent e5ca2106
Showing with 9 additions and 5 deletions
......@@ -25,7 +25,10 @@ while True:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE:
asdd = 'up'
if asdd == 'run':
asdd = 'up'
else:
pass
if asdd == 'up':
if y > 150:
......@@ -39,10 +42,11 @@ while True:
else:
asdd = 'run'
hero1 = hero[index]
index += 1
if index > 4:
index = 0
if asdd == 'run':
hero1 = hero[index]
index += 1
if index > 4:
index = 0
# 将背景图画上去
screen.blit(background, (0, 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