Commit bcda13d3 by BellCodeEditor

save project

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