blob: 6b4003f1855594d47c14ef26cdbd5810117ddcad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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: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"Bonus{total_bonus:13d}pts\n")
return TextPage(
text,
font = 'lcd',
size = (12_000, 24_000),
grid = (14_000, 20_000),
pos = (12_000, 6_000) )
|