From 1d816e0c6a486767cab5ad1957edd8511c2d8f41 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 6 Jul 2025 21:07:36 -0700 Subject: [PATCH] test player-relative paths --- vacuum_gambit.p8 | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index f912cd3..11890bf 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1529,6 +1529,37 @@ diamond_bounce = path.new{ }, } +swoop = segment.new { + dests = { + destination.new{ + accel_frac = 0 + }, destination.new{ + x_off_frac = -0.75, + anchor_frac = 0.25, + }, destination.new { + x_off_frac = -0.375, + anchor_frac = 0.625, + }, destination.new { + y_off_frac = -0.125, + anchor_frac = 1, + }, destination.new { + x_off_frac = 0.375, + anchor_frac = 0.625, + }, + }, +} + +swoop_loop = path.new { + segs = { + diamond_loop, + swoop, + park, + diamond_loop.mirror, + swoop.mirror, + park, + } +} + ship_mook = mknew(ship_f.new{ sprite=103 }) @@ -1551,7 +1582,7 @@ ship_skirmisher = mknew(ship_f.new{ fire_off_y = 7, xmin = -8, xmax = 112, - path = diamond_loop, + path = swoop_loop, }) function ship_skirmisher:reset_bounds()