Commit bcda13d3 by BellCodeEditor

save project

parent 7aa93dc9
Showing with 5 additions and 5 deletions
......@@ -16,8 +16,8 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png'),]
ss=1
index = 0
index = 0
pygame.display.set_caption(" 顶级大傻的跑酷")
while True:
for event in pygame.event.get():
......@@ -28,8 +28,8 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(hero[ss], (150, 400))
screen.blit(hero[index], (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
ss=(ss+1)%5
\ No newline at end of file
index=(index+1)%5
\ No newline at end of file
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