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

27 lines
511 B
Lua

local Scene = require "core.modules.scenes"
local BoostLevel = Scene:extend()
local Controller = require "scenes.subgame.sonic-boost.controller"
function BoostLevel:new()
BoostLevel.super.new(self)
self.controller = Controller()
self:register()
end
function BoostLevel:update(dt)
self.controller:update(dt)
end
function BoostLevel:draw()
self.controller:draw()
end
function BoostLevel:leave()
self.controller:destroy()
self.controller = nil
collectgarbage()
end
return BoostLevel