sonic-radiance/sonic-radiance.love/scenes/battlesystem/init.lua

31 lines
706 B
Lua

local BattleSystem = {}
local Controller = require "scenes.battlesystem.controller"
function BattleSystem:enter()
self.controller = Controller()
--self.background = love.graphics.newImage("assets/background/testbackground.png")
end
function BattleSystem:update(dt)
game:update(dt)
game.input:update(dt)
self.controller:update(dt)
end
function BattleSystem:draw()
--CScreen:apply()
love.graphics.setColor(1, 1, 1, 1)
love.graphics.rectangle("fill", 0, 0, 424, 240)
--love.graphics.draw(self.background, 0, 0)
self.controller:draw()
--CScreen:cease()
end
function BattleSystem:leave()
self.controller:destroy()
self.controller = nil
collectgarbage()
end
return BattleSystem