diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-28 22:28:45 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-28 22:28:45 +0200 |
commit | f894c2fd09ed17540c49cb4083573861ded76554 (patch) | |
tree | cedbe5bab1b5f91b7e3dfb70c17f5114034e700e /src/sliceitoff/hiscores/hiscores.py | |
parent | f502b21183d307fcab9b353aa18609d15c3547f1 (diff) |
Show as sprite group with update
Diffstat (limited to 'src/sliceitoff/hiscores/hiscores.py')
-rw-r--r-- | src/sliceitoff/hiscores/hiscores.py | 12 |
1 files changed, 8 insertions, 4 deletions
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 |