vision/assets.lua

22 lines
707 B
Lua
Raw Normal View History

2022-10-13 16:06:52 +02:00
multilily = lily.loadMulti({
{lily.newImage, "assets/logo.png"},
{lily.newSoundData, "assets/intro.ogg"},
{lily.newImage, "assets/hud.png"},
{lily.newImage, "assets/captains/steve-layer.png"},
{lily.newImage, "assets/captains/robert-davis.png"},
{lily.newImage, "assets/captains/john-danger.png"}
})
multilily:onComplete(function(_, lilies)
gameLogo = lilies[1][1]
introSound = love.audio.newSource( lilies[2][1] )
gameHud = lilies[3][1]
CaptainSteve.image = lilies[4][1]
CaptainRobert.image = lilies[5][1]
CaptainJohn.image = lilies[6][1]
windowWidth = love.graphics.getWidth()
windowHeight = love.graphics.getHeight()
TitleScene:init()
currentScene = TitleScene
end)