From 96312e3adf54a7aec212289de6ea30d63ee47668 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 31 May 2025 22:05:47 -0700 Subject: [PATCH] fix offset bugs --- vacuum_gambit.p8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 0f882dd..d923a5d 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1591,7 +1591,7 @@ function flotilla:update() -- distribute across box: -- x = [4, 100) - -- y = [4, 80) + -- y = [4, 60) local x_interval,x_offset = 0,52 if min_col < max_col then @@ -1601,8 +1601,8 @@ function flotilla:update() local y_interval,y_offset=0,40 if live_rows > 1 then - y_interval=76/(live_rows-1) - x_offset=4-y_interval + y_interval=56/(live_rows-1) + y_offset=4-y_interval end -- now assign target locations @@ -1615,8 +1615,8 @@ function flotilla:update() real_row += 1 row_alive = true end - ship.want_x = ship.col * x_interval - x_offset - ship.want_y = real_row * y_interval - y_offset + ship.want_x = ship.col * x_interval + x_offset + ship.want_y = real_row * y_interval + y_offset end -- ship updated end -- row updated end -- table updated