woo, super extensible start splash
self.stages = {
{
void = 0.5;
fade = 0.75;
wait = 0.75;
size = function ()
local width = res.image.love_logo:getWidth()
local height = res.image.love_logo:getHeight()
return width, height
end;
draw = function (alpha, x, y)
love.graphics.setColor(255, 255, 255, alpha * 255)
love.graphics.draw(res.image.love_logo, x, y)
end;
},
{
void = 0.5;
fade = 0.5;
wait = 1.5;
size = function()
local width = res.font.title:getWidth('That Falling Box Game')
local height = res.font.title:getHeight('That Falling Box Game')
return width, height
end;
draw = function(alpha, x, y)
love.graphics.setColor(255, 255, 255, alpha * 255)
love.graphics.setFont(res.font.title)
love.graphics.print('That Falling Box Game', x, y)
end;
}
}