summary refs log tree commit diff stats
path: root/src/schedule.h
Commit message (Collapse)AuthorAgeFilesLines
* Trains move on tracks to the beatKelly Rauchenberger2019-02-221-4/+18
| | | | Small implementation changes in various places, biggest thing is now we're using ranges, which is experimental and will be included for real in C++20.
* Started implementing scheduleKelly Rauchenberger2019-02-201-0/+44
Scheduled entities move downward every beat, although they have a speed that is twice the bpm, so essentially they move every other beat? Broke the simulation loop such that different parts run independently -- made it horizontal rather than vertical. Encapsulated the grid cache so that more than one position field could be cached. This is used to make sure that an entity can't move into a space that something else is already moving into. Fixed issue where an entity could move perpendicularly into the space an entity was moving out of.