diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-24 12:32:42 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-24 12:32:42 +0200 |
commit | 749d47df38540342a7fe19029284b8115b03574a (patch) | |
tree | dbcc6c9a67644b7f73a00885cbafe8cb14dee3dd /src/sliceitoff/screens | |
parent | c22159dfb5abda283d76248b474098cc2110935c (diff) |
scoring
Diffstat (limited to 'src/sliceitoff/screens')
-rw-r--r-- | src/sliceitoff/screens/levelup.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/sliceitoff/screens/levelup.py b/src/sliceitoff/screens/levelup.py index 0a0468b..6b4003f 100644 --- a/src/sliceitoff/screens/levelup.py +++ b/src/sliceitoff/screens/levelup.py @@ -2,18 +2,28 @@ from text import TextPage from stats import Stats def levelup_screen(): + ( + total_bonus, + level_bonus, + life_bonus, + time_bonus, + area_bonus, + herd_bonus) = Stats.calc_bonus() text = ( " LEVEL UP BONUS!\n" " ===============\n" "\n" - f"Level{Stats.level*3000:7d}pts\n" - f"Time{Stats.bonus:8d}pts\n" + f"Level{Stats.level:3d}\x12{level_bonus:9d}pts\n" + f"Lives{Stats.lives:3d}\x03{life_bonus:9d}pts\n" + f"Time{int(Stats.bonus/1000):4d}\x0e{time_bonus:9d}pts\n" + f"Area{int(Stats.percent):4d}\xfe{area_bonus:9d}pts\n" + f"Herd{Stats.enemies-Stats.field_count:4d}\x0f{herd_bonus:9d}pts\n" f"\n" - f"Total{Stats.level*3000+Stats.bonus:7d}pts") + f"Bonus{total_bonus:13d}pts\n") return TextPage( text, - font = 'hearst', + font = 'lcd', size = (12_000, 24_000), - grid = (14_000, 24_000), + grid = (14_000, 20_000), pos = (12_000, 6_000) ) |