sonic-bluestreak/sonic-boost.love/scenes/subgame/sonic-boost/init.lua

33 lines
690 B
Lua
Raw Normal View History

local Levels = {}
local Controller = require "scenes.levels.controller"
function Levels:enter()
self.controller = Controller()
print("battle started")
--self.background = love.graphics.newImage("assets/background/testbackground.png")
end
function Levels:update(dt)
game:update(dt)
game.input:update(dt)
self.controller:update(dt)
end
function Levels: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 Levels:leave()
self.controller:destroy()
self.controller = nil
collectgarbage()
end
return Levels