headchant
95f07233b9
Punctation change
...
Unifies instance and default timer object access of functions to '.' for example: timer.clear(). For instances you had to use ':' until now.
2014-11-13 16:00:20 +01:00
Matthias Richter
ff60ae5372
Fix issue #24 : cancel not removing periodic timers.
2013-08-22 11:10:56 +02:00
Matthias Richter
4f6c85e514
Add timer.tween
2013-03-31 20:53:53 +02:00
Matthias Richter
c6b75aaa9f
Fix issue #13 : Timer.do_for crashes when after is not supplied
2013-03-23 15:13:12 +01:00
Matthias Richter
8d4e5bb65f
Update license header
2013-02-20 16:54:57 +01:00
Matthias Richter
b02273c936
timer.lua: Add do_for(). Remove Interpolator, Oscillator.
2012-10-02 18:28:22 +02:00
Matthias Richter
7aa3073037
Add individual timer support (as requested by mofr)
2012-05-08 17:34:41 +02:00
Matthias Richter
adcceed73b
Update license header
2012-04-10 17:00:02 +02:00
Matthias Richter
42c3b9b47e
Make Timer.add[Periodic]() return timer handle. Export Timer.handle
2012-03-31 15:05:07 +02:00
Matthias Richter
7c257c891d
Implement issue #4 : Ability to cancel specific timers
2012-03-31 14:31:43 +02:00
Matthias Richter
28b698fb00
Eliminate use of module(...) function
2011-07-06 14:19:31 +02:00
Matthias Richter
610de8fc98
Make periodic timer stoppable
2011-06-04 15:45:25 +02:00
Matthias Richter
c3e78cce45
Code cleanup
2011-04-24 21:12:33 +02:00
Matthias Richter
762de78e51
API change: Call interpolator only when interpolation ongoing.
2011-01-20 15:26:12 +01:00
Matthias Richter
9bcb428555
Make proper tail recursion calls
2011-01-19 16:41:59 +01:00
Matthias Richter
d1d6dbb056
Make proper modules
2011-01-18 17:44:38 +01:00
Matthias Richter
0dc9eacc57
Bugfix: Timer.update(dt) sometimes fails on `for'
...
Deleting functions from the function register while looping over
it could break the next-iterator in the for loop. To prevent that
from happening, we collect the functions to be deleted and delete
them in an extra loop.
Functions will still only be called after they have been removed
from the timer register.
2011-01-12 12:18:37 +01:00
Matthias Richter
f093abdad1
Forward interpolating function arguments, add oscillator
2010-10-18 12:31:01 +02:00
Matthias Richter
12dd144d0b
forward return value of interpolating function
2010-10-17 16:28:50 +02:00
Matthias Richter
2579a7f6bc
Return nil if interpolation is stopped
2010-10-17 16:03:52 +02:00
Matthias Richter
0be37cfbba
add timer module
2010-10-17 15:06:35 +02:00