Commit e82b5a99 by BellCodeEditor

save project

parent e4aee0b1
Showing with 2 additions and 1 deletions
...@@ -18,6 +18,7 @@ hero = [pygame.image.load('hero1.png'), ...@@ -18,6 +18,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
pygame.display.set_caption("悟空酷跑") pygame.display.set_caption("悟空酷跑")
index = 0 index = 0
t=30
wr="run" wr="run"
y=400 y=400
while True: while True:
...@@ -27,7 +28,7 @@ while True: ...@@ -27,7 +28,7 @@ while True:
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
if event.type==locals.K_SPACE: if event.type==locals.K_SPACE:
wr="up" wr="up"
if wr=="up": if t=0:
y>150 y>150
y-=5 y-=5
else: else:
......
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