Commit e82b5a99 by BellCodeEditor

save project

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