fix(shootmap): put all asset declaration at the same place

This commit is contained in:
Kazhnuz 2019-08-02 13:55:34 +02:00
parent 001c1a3d5a
commit 52fdc3d681

View file

@ -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)