3 ms·
That sounds like such a perfect fit for Lua. We used it to the same effect in gamedev. Coroutines are also amazing for sequenced AI routes.
by vvanders 9y ago
That sounds like such a perfect fit for Lua. We used it to the same effect in gamedev.
Coroutines are also amazing for sequenced AI routes.
- dividuum 9y agoCoroutines are also useful for some of the visual code I wrote: You can have functions that run through an animation, yielding for every frame. Or of course you can handle loading, displaying and teardown for content in one function. Pretty handy.