Commit 5942c376 by BellCodeEditor

auto save

parent aae0c628
Showing with 6 additions and 1 deletions
......@@ -40,6 +40,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
basic_font=pygame.font()
index = 0
y = 400
jumpState = "runing"
......@@ -114,7 +115,10 @@ while True:
gameover = pygame.image.load('gameover.png') # 游戏结束
screen.blit(gameover, (400, 200))
gamestate = False
else:
if (sprite.rect.x)
scoreSuri=basic_font.render("分数"+str(score),True,(255,25,255))
scoeen.blit(scoreSuri,(880,20))
# 刷新画面W
pygame.display.update()
FPS.tick(60)
\ 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