Enemy balance pass.
This commit is contained in:
parent
485a2dc151
commit
47bbeefecf
|
@ -16,9 +16,9 @@ function Ebi:init()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Ebi:onReady()
|
function Ebi:onReady()
|
||||||
self.weaponTimer = playdate.timer.new(2500,
|
self.weaponTimer = playdate.timer.new(2000,
|
||||||
function()
|
function()
|
||||||
local b = Bullet(2, 1)
|
local b = Bullet(3, 1)
|
||||||
b:moveTo(self.x - (self.width/2) - 1, self.y)
|
b:moveTo(self.x - (self.width/2) - 1, self.y)
|
||||||
b:add()
|
b:add()
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ end
|
||||||
function Ika:onReady()
|
function Ika:onReady()
|
||||||
self.weaponTimer = playdate.timer.new(7000,
|
self.weaponTimer = playdate.timer.new(7000,
|
||||||
function()
|
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:moveTo(self.x - (self.width/2) - 1, self.y)
|
||||||
b:add()
|
b:add()
|
||||||
end
|
end
|
||||||
|
@ -31,7 +31,7 @@ end
|
||||||
function Ika:calculateVector(target)
|
function Ika:calculateVector(target)
|
||||||
local vec = geom.point.new(target:getPosition()) -
|
local vec = geom.point.new(target:getPosition()) -
|
||||||
geom.point.new(self:getPosition())
|
geom.point.new(self:getPosition())
|
||||||
return vec:normalized() * 3
|
return vec:normalized() * 5
|
||||||
end
|
end
|
||||||
|
|
||||||
function Ika:remove()
|
function Ika:remove()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user