Enemy balance pass.

This commit is contained in:
Anna Rose 2023-10-04 23:09:39 -04:00
parent 485a2dc151
commit 47bbeefecf
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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()