Enemy balance pass.
This commit is contained in:
parent
485a2dc151
commit
47bbeefecf
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user