Commit b1361d7e by BellCodeEditor

auto save

parent 401fcc18
Showing with 3 additions and 0 deletions
...@@ -35,6 +35,7 @@ hero =[pygame.image.load('hero1.png'), ...@@ -35,6 +35,7 @@ hero =[pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
index = 0 index = 0
jf=0
gamestat=True gamestat=True
road_x=0 road_x=0
time=0 time=0
...@@ -110,6 +111,8 @@ while True: ...@@ -110,6 +111,8 @@ while True:
gameover=pygame.image.load('gameover.png') gameover=pygame.image.load('gameover.png')
screen.blit(gameover,(400,150)) screen.blit(gameover,(400,150))
gamestat=False gamestat=False
else:
if
screen.blit(obstacle.image,(obstacle.rect.x,obstacle.rect.y)) screen.blit(obstacle.image,(obstacle.rect.x,obstacle.rect.y))
# 刷新画面 # 刷新画面
......
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