summary refs log tree commit diff stats
path: root/vendor/sol.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Started integrating Lua as a scripting engineKelly Rauchenberger2018-05-171-0/+21575
Currently moving platforms are able to have their movement controlled by a script rather than by XML, which is probably a better implementation and scales better to other things. The scripts, instead of using the components as state, use the stack as state. In this way, they pretend to be multithreaded. For instance, the moving platform calls moveRight and then moveLeft. Both of those functions internally make calls that say to wait until the next tick. When the AutomatingSystem ticks, it continues execution of all scripts (sequentially, of course) until they ask for the next tick again. This is implemented using coroutines.