scenes/boost: add level assets

This commit is contained in:
Kazhnuz 2019-02-04 07:47:42 +01:00
parent 0dd0c51c77
commit d308e42560
20 changed files with 10 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

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

View file

@ -286,11 +286,12 @@ end
function World:loadAssets()
self.textures = {}
self.textures.tiles = love.graphics.newImage("assets/levels/normaltile.png")
self.textures.sptiles = love.graphics.newImage("assets/levels/specialtile.png")
self.textures.borders = love.graphics.newImage("assets/levels/borders.png")
local folder = "assets/backgrounds/sideview/"
self.textures.tiles = love.graphics.newImage(folder .. "normaltile.png")
self.textures.sptiles = love.graphics.newImage(folder .. "specialtile.png")
self.textures.borders = love.graphics.newImage(folder .. "borders.png")
self.textures.rail = love.graphics.newImage("assets/levels/rails/basic.png")
self.textures.rail = love.graphics.newImage(folder .. "rails/basic.png")
self.quads = {}
self.quads.tiles = {}