From 85c50918044e746988f86ac72f2058b012153491 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 20 Jun 2025 19:08:58 -0700 Subject: [PATCH] pbullets also move just before the collision check. This also sets up for the "fast shots" refactor. --- vacuum_gambit.p8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 0f1227c..866e488 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -234,7 +234,7 @@ function updategame() end events:vore(new_events) events:strip(call_move) - for _, lst in ipairs{intangibles_bg, eships, pbullets} do + for _, lst in ipairs{intangibles_bg, eships} do lst:strip(call_move) end @@ -261,6 +261,7 @@ function updategame() end pbullets:strip(function(pb) + if (pb:move()) return true for es in eship_collider:iterate_collisions(hurtbox(pb)) do if (es:hitbullet(pb)) eship_collider:yoink(es) if (pb:hitship(es)) return true