From 52fdc3d6816a1b729fb7ea2cc30eb2b856a9c263 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 2 Aug 2019 13:55:34 +0200 Subject: [PATCH] fix(shootmap): put all asset declaration at the same place --- sonic-radiance.love/game/modules/world/maps/shoot.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonic-radiance.love/game/modules/world/maps/shoot.lua b/sonic-radiance.love/game/modules/world/maps/shoot.lua index 452d500..4e57e47 100644 --- a/sonic-radiance.love/game/modules/world/maps/shoot.lua +++ b/sonic-radiance.love/game/modules/world/maps/shoot.lua @@ -10,7 +10,7 @@ function ShootMap:new(world, maptype, mapname) ShootMap.super.new(self, world) self:setPadding(0, 0, 0, 0) - self:generateTextures(1) + self:generateTextures(1, "city") end function ShootMap:loadCollisions() @@ -34,7 +34,7 @@ function ShootMap:loadActors() -- Empty Placeholder function end -function ShootMap:generateTextures(tile) +function ShootMap:generateTextures(tile, background) self.texture = {} self.texture.floor = self:generateFloor(tile) @@ -43,7 +43,7 @@ function ShootMap:generateTextures(tile) local w, h = self.texture.border:getDimensions() self.quads.borders = love.graphics.newQuad(0, tile*10, 80, 10, w, h) - self:addParallax("city") + self:addParallax(background) end function ShootMap:generateFloor(tile)