From ab09778f3a2eef19cee240ddf28a684fd1bc1c76 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 3 Feb 2019 20:00:08 +0100 Subject: [PATCH] scenes/boost: use the new scene system --- sonic-boost.love/scenes/subgame/sonic-boost/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/init.lua b/sonic-boost.love/scenes/subgame/sonic-boost/init.lua index 83b2b0b..44118ce 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/init.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/init.lua @@ -1,7 +1,8 @@ -local BoostLevel = {} +local Scene = require "core.modules.scenes" +local BoostLevel = Scene:extend() local Controller = require "scenes.levels.controller" -function BoostLevel:enter() +function BoostLevel:new() self.controller = Controller() print("battle started") --self.background = love.graphics.newImage("assets/background/testbackground.png")