Commit a18cca13 by BellCodeEditor

save project

parent 799bce07
Showing with 10 additions and 1 deletions
......@@ -18,7 +18,8 @@ hero =[pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
index = 0
y=400
jumpState="running"
while True:
for event in pygame.event.get():
......@@ -31,6 +32,14 @@ while True:
if index==5:
index=0
if y>150:
y-=5
screen.blit(wukong,(150,y))
if y<400:
y+=5
screen.blit(wukong,(150,y))
# 将背景图画上去
screen.blit(background, (0, 0))
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