Commit 00e70cf8 by BellCodeEditor

save project

parent b9bedcc0
Showing with 7 additions and 1 deletions
......@@ -17,7 +17,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero5.png')]
a=0
index = 0
y=400
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -27,6 +27,12 @@ while True:
if a==5:
a=0
b=hero[a]
if y>150:
y-=5
screen.blit(wukong,(150,y))
if y<400:
y+=5
screen.blit(wukong,(400,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