Added highscore display in options

This commit is contained in:
theo@manjaro 2021-09-17 11:19:47 +02:00
parent 3749029e80
commit 932c68d6c3
1 changed files with 8 additions and 0 deletions

View File

@ -18,5 +18,13 @@ class OptionMenu(menu.Menu):
self.depth = -1
self.highscore = self.game.fontfile.render(f"Highscore : {self.game.globals['highscore']}",False,[255,230,50])
self.highscoreblack= self.game.fontfile.render(f"Highscore : {self.game.globals['highscore']}",False,[0,0,0])
def draw(self):
margin = 2
for x in range(-margin,margin+1):
for y in range(-margin,margin+1):
self.game.lib.drawcenter(self.game,self.highscoreblack,self.game.DISPLAY_WIDTH/2+x,self.game.DISPLAY_HEIGHT*0.85+y)
self.game.lib.drawcenter(self.game,self.highscore,self.game.DISPLAY_WIDTH/2,self.game.DISPLAY_HEIGHT*0.85)
self.game.window.blit(self.game.sprite_lib["gui/optionsbg.png"],[0,0])