diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-18 17:06:24 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-18 17:06:24 +0200 |
commit | c2432fdf4c3b60e579aef7e8a8a4f84e371f7734 (patch) | |
tree | fd756c0e6f11d11c8e816c31e2fa0eb0708e42a1 /src/sliceitoff/status | |
parent | 89bf2bf2197e44f0745bcae1400227c2999573cd (diff) |
statusline
Diffstat (limited to 'src/sliceitoff/status')
-rw-r--r-- | src/sliceitoff/status/status.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/sliceitoff/status/status.py b/src/sliceitoff/status/status.py index a63a7db..f6517da 100644 --- a/src/sliceitoff/status/status.py +++ b/src/sliceitoff/status/status.py @@ -35,11 +35,19 @@ class Status(): self.bonus = max(0, self.bonus - dt) - score_str="LEVEL{:02d}LIVES{:02d}{:010d}".format(self.level, self.lives, self.bonus) + score_str = ( + "{:02d}\x12 {:02d}\xfe {:02d}\x03 " + "{:02d}\x0e {:08d}\x0f").format( + self.level, + 99 if 100 == 100 else 99, + self.lives, + self.bonus // 1000, + self.score) self.sprites = TextGroup( score_str, - (0, 280_000), - size = 10_000) + (0, 282_000), + size = 16_000, + font = '8x8') def lose_life(self): """ Lose 1 life and return true if no lives left """ |