HUD
This commit is contained in:
parent
6b37fa56aa
commit
85a37ed070
@ -152,6 +152,7 @@ levels = {
|
||||
gnd=5,
|
||||
mapy=2,
|
||||
bad_item_ratio=0.1,
|
||||
unit="CM",
|
||||
},
|
||||
{
|
||||
name="city nights",
|
||||
@ -159,6 +160,7 @@ levels = {
|
||||
gnd=5,
|
||||
mapy=5,
|
||||
bad_item_ratio=0.2,
|
||||
unit="M",
|
||||
},
|
||||
}
|
||||
lvl = levels[1]
|
||||
@ -209,7 +211,9 @@ function level_draw()
|
||||
|
||||
-- hud
|
||||
local size = max(flr(pieces/MAX_PIECES*100), 1)
|
||||
print(size.."CM GOAL: 100CM", 20, 1, 14)
|
||||
local time_left = 10
|
||||
rectfill(0, 0, 128, 8, 2)
|
||||
print("size "..size..lvl.unit.." "..time_left.."S ".."GOAL: 100"..lvl.unit, 1, 1, 9)
|
||||
end
|
||||
|
||||
function draw_stink(x, y)
|
||||
|
Loading…
Reference in New Issue
Block a user