Commit 907344e5 by BellCodeEditor

save project

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