Commit ae75a0c2 by BellCodeEditor

save project

parent 0bb092b5
Showing with 2 additions and 2 deletions
......@@ -47,7 +47,7 @@ bg_x = 0
time = 0
gamestate = True
block_list =pygame.sprite.Group() # 创建精灵组
score=0
score=100
speed=8
old_score=0
score_music=pygame.mixer.Sound('score.wav')
......@@ -117,7 +117,7 @@ while True:
old_score=score
score_music.play()
# 刷新画面
sss=pygame.font.Font("STKAITI.TTF",30)
sss=pygame.font.Font("STKAITI.TTF",20)
text=sss.render('score:'+str(score),True,(0,0,0))
screen.blit(text,(900,0))
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