sonic-radiance/sonic-radiance.love/scenes/battlesystem/controllers/player.lua

29 lines
597 B
Lua
Raw Normal View History

2020-07-18 09:51:02 +02:00
local PlayerController = Object:extend()
function PlayerController:new(owner)
self.owner = owner
self.activeActor = nil;
self.startData = {}
end
function PlayerController:setActive(activeActor)
self.activeActor = activeActor
activeActor:setActive()
end
function PlayerController:update(dt)
end
function PlayerController:setStartData(x, y, direction)
self.startData.x = x
self.startData.y = y
self.startData.direction = direction
end
function PlayerController:getStartData()
return self.startData.x, self.startData.y, self.startData.direction
end
return PlayerController