From 43bf58137ade30168e17c0adb1d7f65c471860c4 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 1 Oct 2023 12:22:52 -0700 Subject: [PATCH] finish hud --- pal_from_spr.p8 | 63 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 22 deletions(-) diff --git a/pal_from_spr.p8 b/pal_from_spr.p8 index 1c9e586..b5bbf18 100644 --- a/pal_from_spr.p8 +++ b/pal_from_spr.p8 @@ -59,18 +59,37 @@ box_rows = 4 box_cols = 4 function draw_box_hud() - spr(1,0,0,4,2) + spr(1,3,0,4,2) local toff = time() * 4 \ 1 % 2 spr(107 + (active == "sprite" and toff or 0), - 8*scx,4*scy,1,0.5) + 3+8*scx,4*scy,1,0.5) spr(109 + (active == "draw" and toff or 0), - 8*dcx,4*dcy,1,0.5) + 3+8*dcx,4*dcy,1,0.5) - print_shadow("spr",34,4,12) - sspr(8+8*scx,4*scy,8,4,47,4,16,8) + print_shadow("spr",42,5,12) + sspr(8+8*scx,4*scy,8,4,55,4,16,8) - print_shadow("draw",65,4,14) - sspr(8+8*dcx,4*dcy,8,4,83,4,16,8) + print_shadow("draw",73,5,14) + sspr(8+8*dcx,4*dcy,8,4,91,4,16,8) +end + +rows_rows = 8 +rows_cols = 2 + +function draw_rows_hud() + spr(33,0,0,2,2) + spr(35,22,0,2,2) + local toff = time() * 4 \ 1 % 2 + spr(103 + (active == "sprite" and toff or 0), + 17 + 22*scx, 2*scy, 0.25, 0.25) + spr(105 + (active == "draw" and toff or 0), + 17 + 22*dcx, 2*dcy, 0.25, 0.25) + + print_shadow("spr",48,0,12) + sspr(8+16*scx,16+2*scy,16,2,61,2,32,4) + + print_shadow("draw",44,8,14) + sspr(8+16*dcx,16+2*dcy,16,2,61,10,32,4) end function draw_bars() @@ -167,22 +186,22 @@ __gfx__ 00000000456745674567456745674567456745670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000089ab89ab89ab89ab89ab89ab89ab89ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000cdefcdefcdefcdefcdefcdefcdefcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000124456789abcdef0124456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000244444444444444424444444444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000555555555555555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000355555555555555535555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000355555554444444435555555444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000333333334444555533333333444455550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000123456789abcdef0123456789abcdef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000444422225555333344442222555533330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000