22 lines
428 B
Lua
22 lines
428 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
|
||
|
return {
|
||
|
eventType = 'switch',
|
||
|
toScreen = 'mode_select'
|
||
|
}
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return {
|
||
|
render = render
|
||
|
}
|