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"
function Levels:enter()
function BoostLevel:enter()
self.controller = Controller()
print("battle started")
--self.background = love.graphics.newImage("assets/background/testbackground.png")
end
function Levels:update(dt)
function BoostLevel:update(dt)
game:update(dt)
game.input:update(dt)
self.controller:update(dt)
end
function Levels:draw()
function BoostLevel:draw()
--CScreen:apply()
love.graphics.setColor(1, 1, 1, 1)
love.graphics.rectangle("fill", 0, 0, 424, 240)
@ -22,11 +22,11 @@ function Levels:draw()
--CScreen:cease()
end
function Levels:leave()
function BoostLevel:leave()
self.controller:destroy()
self.controller = nil
collectgarbage()
end
return Levels
return BoostLevel