fix(shootmap): put all asset declaration at the same place
This commit is contained in:
parent
001c1a3d5a
commit
52fdc3d681
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ function ShootMap:new(world, maptype, mapname)
|
||||||
ShootMap.super.new(self, world)
|
ShootMap.super.new(self, world)
|
||||||
|
|
||||||
self:setPadding(0, 0, 0, 0)
|
self:setPadding(0, 0, 0, 0)
|
||||||
self:generateTextures(1)
|
self:generateTextures(1, "city")
|
||||||
end
|
end
|
||||||
|
|
||||||
function ShootMap:loadCollisions()
|
function ShootMap:loadCollisions()
|
||||||
|
@ -34,7 +34,7 @@ function ShootMap:loadActors()
|
||||||
-- Empty Placeholder function
|
-- Empty Placeholder function
|
||||||
end
|
end
|
||||||
|
|
||||||
function ShootMap:generateTextures(tile)
|
function ShootMap:generateTextures(tile, background)
|
||||||
|
|
||||||
self.texture = {}
|
self.texture = {}
|
||||||
self.texture.floor = self:generateFloor(tile)
|
self.texture.floor = self:generateFloor(tile)
|
||||||
|
@ -43,7 +43,7 @@ function ShootMap:generateTextures(tile)
|
||||||
local w, h = self.texture.border:getDimensions()
|
local w, h = self.texture.border:getDimensions()
|
||||||
self.quads.borders = love.graphics.newQuad(0, tile*10, 80, 10, w, h)
|
self.quads.borders = love.graphics.newQuad(0, tile*10, 80, 10, w, h)
|
||||||
|
|
||||||
self:addParallax("city")
|
self:addParallax(background)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ShootMap:generateFloor(tile)
|
function ShootMap:generateFloor(tile)
|
||||||
|
|
Loading…
Reference in a new issue