-
Notifications
You must be signed in to change notification settings - Fork 0
/
splash.tl
43 lines (34 loc) · 845 Bytes
/
splash.tl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require "libs.splashes.o-ten-one"
local record Splash
_splash: any
init: function()
keypressed: function(key: string)
draw: function()
update: function(dt: number)
end
local splash: Splash = {}
function splash.init()
--local ok, t: boolean, any = pcall(require "libs.splashes.o-ten-one")
-- XXX Not work
--[[
if ok then
splash._splash = t
splash._splash.onDone = function()
states.pop(menu)
end
else
print("Error in loading splash library. Continuing.")
states.pop()
end
--]]
end
function splash.keypressed(_: string)
--(splash._splash as LibSplash):skip()
end
function splash.draw()
--(splash._splash as LibSplash):draw()
end
function splash.update(_: number)
--(splash._splash as LibSplash):update(dt)
end
return splash