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

28 lines
511 B
Lua
Raw Normal View History

2019-02-03 20:00:08 +01:00
local Scene = require "core.modules.scenes"
2019-02-04 08:40:41 +01:00
local BoostLevel = Scene:extend()
local Controller = require "scenes.subgame.sonic-boost.controller"
2019-02-03 20:00:08 +01:00
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