summaryrefslogtreecommitdiff
path: root/src/sliceitoff/hiscores
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-28 22:28:45 +0200
committerViljami Ilola <+@hix.fi>2024-03-28 22:28:45 +0200
commitf894c2fd09ed17540c49cb4083573861ded76554 (patch)
treecedbe5bab1b5f91b7e3dfb70c17f5114034e700e /src/sliceitoff/hiscores
parentf502b21183d307fcab9b353aa18609d15c3547f1 (diff)
Show as sprite group with update
Diffstat (limited to 'src/sliceitoff/hiscores')
-rw-r--r--src/sliceitoff/hiscores/hiscores.py12
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