summary refs log tree commit diff stats
path: root/src/vector.h
Commit message (Collapse)AuthorAgeFilesLines
* Started integrating Lua as a scripting engineKelly Rauchenberger2018-05-171-4/+6
| | | | 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.
* Simplified positions/sizes with vectorsKelly Rauchenberger2018-05-091-0/+111
Positions and sizes are now stored as vectors (of doubles and ints, respectively). This allows for at least minor code simplification in many places, and cleans up the CollisionParams code in PonderingSystem quite a bit.