scenes/boost: fix a crash-causing typo in the background controller

This commit is contained in:
Kazhnuz 2019-02-04 08:09:27 +01:00
parent ca86ef714d
commit adc0b40c3c

View file

@ -3,7 +3,7 @@ local Background = Object:extend()
function Background:new(controller, levelname) function Background:new(controller, levelname)
self.controller = controller self.controller = controller
local filename = self.controller.datas.background or "forest" local filename = self.controller.datas.background or "forest"
local backfolder = "assets/levels/backgrounds/sideview/parallax" local backfolder = "assets/backgrounds/sideview/parallax/"
filename = backfolder .. filename filename = backfolder .. filename
self.back1 = love.graphics.newImage(filename .. "-back.png") self.back1 = love.graphics.newImage(filename .. "-back.png")
self.back2 = love.graphics.newImage(filename .. "-fore.png") self.back2 = love.graphics.newImage(filename .. "-fore.png")