From b18b4f885de026f70b7ec58f1822dd3ed947e7cd Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 1 Jun 2025 17:00:28 -0700 Subject: [PATCH] trig zap gun; fixes use the trig gun for the zap gun --- vacuum_gambit.p8 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 8ffb885..8c41d60 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -876,7 +876,7 @@ end trig_gun = mknew(gun_base.new{ veloc = 1, - aim = 0.25, --use 0.75 for a player gun + aim = 0.75, -- down; 0.25 is up shot_idx = 0, -- shots: list> -- describing a cycling @@ -917,7 +917,7 @@ function trig_gun:actually_shoot(x, y) -- multiple collision checks m.dy = sin(a) * veloc m.dx = cos(a) * veloc - m.spawn_at(x+(xo or 0), y) + m:spawn_at(x+(xo or 0), y) end end @@ -940,8 +940,6 @@ zap_e = mknew(bullet_base.new{ y_off = 8, damage = 1, - dx = 0, -- px/frame - dy = 4, hitship = const_fxn(true), @@ -950,19 +948,21 @@ zap_e = mknew(bullet_base.new{ zap_p = mknew(zap_e.new{ sprite = 8, - dy = -8, y_off = 0, category = player_blt_cat, }) -zap_gun_e = mknew(gun_base.new{ +zap_gun_e = mknew(trig_gun.new{ cooldown = 0x0.0020, -- frames between shots + veloc = 4, munition = zap_e, }) zap_gun_p = mknew(zap_gun_e.new{ icon = 19, munition = zap_p, + veloc = 8, + aim = 0.25, hdr = "mAIN gUN", })