diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-27 15:47:05 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-27 15:47:05 +0200 |
commit | a0cbc5902996b52290afb486b3e2554e1abc123c (patch) | |
tree | 55f600717de02e961771932ad0e39080351f20cf /src/sliceitoff/status/status.py | |
parent | 61a1248e340d1c87a6c4e7dec77f1089984b87b6 (diff) |
colored texts
Diffstat (limited to 'src/sliceitoff/status/status.py')
-rw-r--r-- | src/sliceitoff/status/status.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sliceitoff/status/status.py b/src/sliceitoff/status/status.py index ea93b88..ad3034c 100644 --- a/src/sliceitoff/status/status.py +++ b/src/sliceitoff/status/status.py @@ -12,11 +12,11 @@ class Status(pygame.sprite.Group): """ Rebuilds statusline if needed """ super().update(**kwargs) score_str = ( - f"\x12{Stats.level:<2d}" - f"\x03{Stats.lives:<2d}" - f"\x0e{Stats.bonus // 1000:<3d}" - f"\xfe{99 if Stats.percent == 100 else int(Stats.percent):<3d}" - f"\x0f{Stats.enemies-Stats.field_count:<3d}" + f"\xee\x12\xef{Stats.level:<2d}" + f"\xec\x03\xef{Stats.lives:<2d}" + f"\xed\x0e\xef{Stats.bonus // 1000:<3d}" + f"\xe9\xfe\xef{99 if Stats.percent == 100 else int(Stats.percent):<3d}" + f"\xea\x0f\xef{Stats.enemies-Stats.field_count:<3d}" f"{Stats.score:08d}") if self.old_srt != score_str: self.empty() |