Embeddable Lua Scheduler is a pure Lua library to manage timers.
It's embeddable for game loops and features the creation of timers.
It is implemented with a binary heap to manage timers, for performances; this results in a complexity of ~O(log₂n) for each trigger (or removal) and O(1) otherwise.
I personally use a scheduler as a layer on top of the LÖVE application time functions; the whole game can be slowed/accelerated/paused from the scheduler input and time is consistent for a single frame.
Project and documentation: https://github.com/ImagicTheCat/ELScheduler
Showcase your libraries, tools and other projects that help your fellow love users.
2 posts • Page 1 of 1
Users browsing this forum: No registered users and 13 guests