scenes/boost: rename the class to "BoostLevel"

This commit is contained in:
Kazhnuz 2019-02-03 19:58:13 +01:00
parent 783e00b7f7
commit aa8247cc82

View file

@ -1,19 +1,19 @@
local Levels = {} local BoostLevel = {}
local Controller = require "scenes.levels.controller" local Controller = require "scenes.levels.controller"
function Levels:enter() function BoostLevel:enter()
self.controller = Controller() self.controller = Controller()
print("battle started") print("battle started")
--self.background = love.graphics.newImage("assets/background/testbackground.png") --self.background = love.graphics.newImage("assets/background/testbackground.png")
end end
function Levels:update(dt) function BoostLevel:update(dt)
game:update(dt) game:update(dt)
game.input:update(dt) game.input:update(dt)
self.controller:update(dt) self.controller:update(dt)
end end
function Levels:draw() function BoostLevel:draw()
--CScreen:apply() --CScreen:apply()
love.graphics.setColor(1, 1, 1, 1) love.graphics.setColor(1, 1, 1, 1)
love.graphics.rectangle("fill", 0, 0, 424, 240) love.graphics.rectangle("fill", 0, 0, 424, 240)
@ -22,11 +22,11 @@ function Levels:draw()
--CScreen:cease() --CScreen:cease()
end end
function Levels:leave() function BoostLevel:leave()
self.controller:destroy() self.controller:destroy()
self.controller = nil self.controller = nil
collectgarbage() collectgarbage()
end end
return Levels return BoostLevel