Commit 77d36e1c by BellCodeEditor

auto save

parent 2dd2d8a9
Showing with 4 additions and 4 deletions
File added
...@@ -41,8 +41,8 @@ hero = [pygame.image.load('hero1.png'), ...@@ -41,8 +41,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')]
#score_audio = pygame.mixer.Sound('score.wav') score_audio = pygame.mixer.Sound('score.wav')
#basic_font = pygame.font.Font('STKAITI.TTF', 18) # 字体 basic_font = pygame.font.Font('STKAITI.TTF', 18) # 字体
index = 0 index = 0
y = 400 y = 400
...@@ -127,8 +127,8 @@ while True: ...@@ -127,8 +127,8 @@ while True:
print(score) print(score)
# 分数 # 分数
#scoreSurf = basic_font.render("分数:"+str(score), True, (255, 255, 255)) scoreSurf = basic_font.render("分数:"+str(score), True, (255, 255, 255))
#screen.blit(scoreSurf, (880,20)) screen.blit(scoreSurf, (880,20))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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