-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathframeTimer.lua
42 lines (34 loc) · 994 Bytes
/
frameTimer.lua
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
local module = {}
playdate.frameTimer = module
-- duration is in frames
-- function playdate.frameTimer.new(duration, startValue, endValue, easingFunction)
-- function.frameTimer.new(duration, f, args), where f is the timer ended callback, args are passed to the callback
function module.new(duration, startValue, ...)
error("not implemented!")
end
-- FrameTimer:performAfterDelay(delay, func, [...])
-- params:
-- delay: frames until the function is fired
-- func: the function to be called when the timer fires
-- ...: optional list of parameters to func
function module.performAfterDelay(delay, func, ...)
error("not implemented!")
end
function module:pause()
error("not implemented!")
end
function module:start()
error("not implemented!")
end
function module:reset()
error("not implemented!")
end
function module:remove()
error("not implemented!")
end
function module.updateTimers()
error("not implemented!")
end
function module.allTimers()
error("not implemented!")
end