sonic-radiance/sonic-radiance.love/scenes/battlesystem/choregraphy/step/jumpBack.lua

30 lines
684 B
Lua
Raw Normal View History

local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
2020-07-25 10:24:32 +02:00
local JumpBackStep = StepParent:extend()
function JumpBackStep:new(controller, args)
JumpBackStep.super.new(self, controller, args, true)
2020-07-25 10:24:32 +02:00
end
function JumpBackStep:start()
local actor = self:getActor(self.arguments.who)
2020-07-25 10:24:32 +02:00
actor:jumpBack(self.arguments.height, self.arguments.speed)
2020-07-25 10:24:32 +02:00
actor:addTaggedAction(self.tag, self.choregraphy, "jump")
2020-07-25 10:24:32 +02:00
if (self.arguments.blockProcess == false) then
self:finish()
else
actor:blockChoregraphy(self.arguments.blockProcess, self, "jump")
2020-07-25 10:24:32 +02:00
end
end
function JumpBackStep:update(dt)
end
function JumpBackStep:getSignal(signal)
end
return JumpBackStep;