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

18 lines
494 B
Lua
Raw Normal View History

local FighterControllerParent = require "scenes.battlesystem.controllers.parent"
local HeroFighterController = FighterControllerParent:extend()
2020-07-18 09:51:02 +02:00
local Character = require "scenes.battlesystem.controllers.fighters.character"
2020-07-18 09:51:02 +02:00
function HeroFighterController:new(owner)
self.super.new(self, owner)
self:initHeroes()
2020-07-18 09:51:02 +02:00
end
function HeroFighterController:initHeroes()
for i, hero in ipairs(game.characters.team) do
self:add(Character(self, hero, i))
end
2020-07-18 09:51:02 +02:00
end
return HeroFighterController