ExperimentalGear/scripts/titlescreen/splash.lua

22 lines
428 B
Lua
Raw Normal View History

2021-12-19 23:16:19 +01:00
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
return {
eventType = 'switch',
toScreen = 'mode_select'
}
end
end
return {
render = render
}