scenes/boost: add level assets
BIN
sonic-boost.love/assets/backgrounds/sideview/borders.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
sonic-boost.love/assets/backgrounds/sideview/normaltile.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1 KiB |
BIN
sonic-boost.love/assets/backgrounds/sideview/rails/basic.png
Normal file
After Width: | Height: | Size: 436 B |
BIN
sonic-boost.love/assets/backgrounds/sideview/specialtile.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
|
@ -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()
|
||||
|
|
|
@ -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 = {}
|
||||
|
|