rework + cool bomber
This commit is contained in:
@@ -29,9 +29,19 @@ function MovableCrosshair:update()
|
||||
MovableCrosshair.super.update(self)
|
||||
self.time = self.time + playdate.display.getRefreshRate() / 1000
|
||||
|
||||
local offsetX = math.sin(self.time) * self.moveRadius
|
||||
local offsetY = math.cos(self.time * 1.3) * self.moveRadius
|
||||
|
||||
local radius = self.moveRadius
|
||||
if NoiseAnimation.isJamming then
|
||||
radius = 8
|
||||
end
|
||||
|
||||
local offsetX = math.sin(self.time) * radius
|
||||
local offsetY = math.cos(self.time * 1.3) * radius
|
||||
|
||||
if NoiseAnimation.isJamming then
|
||||
offsetX = offsetX + math.random(-3, 3)
|
||||
offsetY = offsetY + math.random(-3, 3)
|
||||
end
|
||||
|
||||
self:moveTo(self.baseX + offsetX, self.baseY + offsetY)
|
||||
self:markDirty()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user