Commit 15783704 by BellCodeEditor

auto save

parent ed556ea2
Showing with 5 additions and 4 deletions
......@@ -44,7 +44,8 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero5.png')]
#score_audio = pygame.mixer.Sound('score.wav')
#basic_font = pygame.font.Font('STKAITI.TTF', 18) # 字体
font=pygame.font.Font(None,30)
#导入字体
font=pygame.font.Font(None,40)
index = 0
y = 400
jumpState = "runing"
......@@ -55,7 +56,7 @@ time = 0
gamestate = True
score = 0
old_score = score
speed=8
block_list = pygame.sprite.Group() # 创建精灵组
# with open('record.txt', 'r', encoding='utf-8') as f:
......@@ -150,4 +151,4 @@ while True:
sprite.score=0
print(score)
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(120)
\ 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