From f894c2fd09ed17540c49cb4083573861ded76554 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Thu, 28 Mar 2024 22:28:45 +0200 Subject: Show as sprite group with update --- src/sliceitoff/hiscores/hiscores.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/sliceitoff/hiscores/hiscores.py') diff --git a/src/sliceitoff/hiscores/hiscores.py b/src/sliceitoff/hiscores/hiscores.py index 098f0e3..2725931 100644 --- a/src/sliceitoff/hiscores/hiscores.py +++ b/src/sliceitoff/hiscores/hiscores.py @@ -45,11 +45,15 @@ class HiScores: config_file.write(f"hiscore={score}!{name}\n") def __str__(self): - text = " HIGH SCORES!!\n\n" + text = ( + " " + "\xeeH\xecI\xedG\xe9H " + "\xeaS\xedC\xeeO\xebR\xe9E\xecS\xeb!\xed!\n\n") half = len(self.table)//2 for i in range(half): text += ( - f"{self.table[i][1]:<4s} {self.table[i][0]:08} " - f"{self.table[i+half][1]:<4s} " - f"{self.table[i+half][0]:08}\n") + f"\xed{self.table[i][1]:<3s} " + f"\xef{self.table[i][0]:07} " + f"\xed{self.table[i+half][1]:<3s} " + f"\xef{self.table[i+half][0]:07}\n") return text -- cgit v1.2.3