ExperimentalGear/scripts/titlescreen/splash.lua

23 lines
453 B
Lua

local splash1Image = gfx.CreateSkinImage('titlescreen/splash/splash1.png', 0);
local splashTimer = 2;
render = function (deltaTime)
gfx.BeginPath();
gfx.ImageRect(0, 0, 1080, 1920, splash1Image, 1, 0);
splashTimer = splashTimer - deltaTime
if (splashTimer < 0) then
splashTimer = 2;
return {
eventType = 'switch',
toScreen = 'mode_select'
}
end
end
return {
render = render
}