From 3f7c4f59c07a3669ed1875cc5368cc80547eff63 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 7 Sep 2024 16:15:00 -0700 Subject: [PATCH] stretch meter area --- vacuum_gambit.p8 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index fc4b9ea..c129607 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -337,28 +337,28 @@ function drawhud() line(113,127) draw_gun_info("❎",1,116,3,primary_ship.main_gun) - draw_gun_info("🅾️",1,116,31,primary_ship.special_gun) + draw_gun_info("🅾️",1,116,29,primary_ship.special_gun) - dropshadow("x h",114,59,1) - inset(114,66,119,125) + dropshadow("x h",114,57,1) + inset(114,64,119,125) fillp(0x5a5a) - vertmeter(115,67,118,124,primary_ship.xp, primary_ship.xptarget, powcols) + vertmeter(115,65,118,124,primary_ship.xp, primary_ship.xptarget, powcols) - inset(120,66,125,125) - -- 57 px vertically + inset(120,64,125,125) + -- 59 px vertically local mxs, cs, mxh, ch = primary_ship.maxshield, primary_ship.shield, primary_ship.maxhp, primary_ship.hp if (mxs > 0) and (mxh > 0) then - local split = 57 * (mxs / (mxs + mxh)) \ 1 + 66 + local split = 59 * (mxs / (mxs + mxh)) \ 1 + 64 line(121, split, 124, split, 0xba) - vertmeter(121,67,124,split-1,cs, mxs,shlcols) + vertmeter(121,65,124,split-1,cs, mxs,shlcols) vertmeter(121,split+1,124,124,ch, mxh, hpcols) elseif mxs > 0 then - vertmeter(121,67,124,124,cs,mxs,shlcols) + vertmeter(121,65,124,124,cs,mxs,shlcols) elseif mxh > 0 then - vertmeter(121,67,124,124,ch,mxh,hpcols) + vertmeter(121,65,124,124,ch,mxh,hpcols) else - print("!", 122, 94, 9) - print("!", 121, 93, 8) + print("!", 122, 93, 9) + print("!", 121, 92, 8) end fillp(0) end