From 2b51a3472bb53b3a70637444bcec14a8677881a6 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 1 Jun 2025 17:36:15 -0700 Subject: [PATCH] protron trig gun --- vacuum_gambit.p8 | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 1bfa064..3de9c2e 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1054,8 +1054,6 @@ protron_e = mknew(bullet_base.new{ y_off = 4, damage = 1, - dym = 0.5, -- gun sets dy; - -- this is mult category = enemy_blt_cat, }) @@ -1066,39 +1064,22 @@ protron_p = mknew(protron_e.new{ category=player_blt_cat, }) -protron_gun_e = mknew(gun_base.new{ +protron_gun_e = mknew(trig_gun.new{ icon = 25, cooldown = 0x0.0040, -- frames between shots ammo = nil, maxammo = nil, - munition = protron_e + munition = protron_e, + veloc = 2, + shots = {{{-0.25}, {-0.165}, {-0.0825}, {0}, {0.0825}, {0.165}, {0.25}}} }) -function protron_gun_e:actually_shoot(x, y) - local m = self.munition.dym - for i=1,3 do - local b = self.munition.new{ - dx = i*m, - dy = (4-i)*m, - } - b:spawn_at(x,y) - local b2 = self.munition.new{ - dx = -i*m, - dy = (4-i)*m, - } - b2:spawn_at(x,y) - end - local bup = self.munition.new{ - dx=0, - dy=4*m, - } - bup:spawn_at(x,y) -end - protron_gun_p = mknew(protron_gun_e.new{ munition = protron_p, maxammo = 20, cooldown = 0x0.0018, + veloc = 4, + aim = -0.75, hdr = "pROTRON", body = [[---------GUN