40 lines
No EOL
1.4 KiB
Lua
40 lines
No EOL
1.4 KiB
Lua
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"},
|
|
{lily.newImage, "assets/ships/blackstar-5.png"},
|
|
{lily.newImage, "assets/ships/excalibur-iv.png"},
|
|
{lily.newImage, "assets/ships/decorator.png"},
|
|
{lily.newImage, "assets/ships/particle.png"},
|
|
{lily.newImage, "assets/particle.png"},
|
|
{lily.newImage, "assets/tiles/gf.png"},
|
|
{lily.newImage, "assets/explosion.png"},
|
|
{lily.newImage, "assets/weapons/bullet.png"},
|
|
{lily.newImage, "assets/gameover.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]
|
|
CaptainSteve.ship.image = lilies[7][1]
|
|
CaptainRobert.ship.image = lilies[8][1]
|
|
CaptainJohn.ship.image = lilies[9][1]
|
|
boosterParticle = lilies[10][1]
|
|
titleParticle = lilies[11][1]
|
|
tileGroundFull = lilies[12][1]
|
|
explosionParticle = lilies[13][1]
|
|
bulletShot = lilies[14][1]
|
|
gameoverLogo = lilies[15][1]
|
|
|
|
windowWidth = love.graphics.getWidth()
|
|
windowHeight = love.graphics.getHeight()
|
|
|
|
TitleScene:init()
|
|
currentScene = TitleScene
|
|
end) |