From 47bbeefecfb377c1c2762cc2d453b3a2f418efc1 Mon Sep 17 00:00:00 2001 From: annabunches Date: Wed, 4 Oct 2023 23:09:39 -0400 Subject: [PATCH] Enemy balance pass. --- src/enemy/ebi.lua | 4 ++-- src/enemy/ika.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/enemy/ebi.lua b/src/enemy/ebi.lua index 74d058e..b19a0a5 100644 --- a/src/enemy/ebi.lua +++ b/src/enemy/ebi.lua @@ -16,9 +16,9 @@ function Ebi:init() end function Ebi:onReady() - self.weaponTimer = playdate.timer.new(2500, + self.weaponTimer = playdate.timer.new(2000, function() - local b = Bullet(2, 1) + local b = Bullet(3, 1) b:moveTo(self.x - (self.width/2) - 1, self.y) b:add() end diff --git a/src/enemy/ika.lua b/src/enemy/ika.lua index ce6e93b..29cf159 100644 --- a/src/enemy/ika.lua +++ b/src/enemy/ika.lua @@ -20,7 +20,7 @@ end function Ika:onReady() self.weaponTimer = playdate.timer.new(7000, function() - local b = Bullet(9, 20, self:calculateVector(self.target)) + local b = Bullet(10, 20, self:calculateVector(self.target)) b:moveTo(self.x - (self.width/2) - 1, self.y) b:add() end @@ -31,7 +31,7 @@ end function Ika:calculateVector(target) local vec = geom.point.new(target:getPosition()) - geom.point.new(self:getPosition()) - return vec:normalized() * 3 + return vec:normalized() * 5 end function Ika:remove()