summary refs log tree commit diff stats
path: root/src/entity.h
Commit message (Collapse)AuthorAgeFilesLines
* This should've been in the last commit!Kelly Rauchenberger2019-02-241-1/+2
|
* More ranges stuff! Now with custom viewsKelly Rauchenberger2019-02-231-0/+11
|
* Trains move on tracks to the beatKelly Rauchenberger2019-02-221-0/+7
| | | | 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/+3
| | | | | | | | | | 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.
* Restrictions for moving into a space a block is moving out ofKelly Rauchenberger2019-02-191-17/+3
| | | | | | An entity can only move into a space a block is moving out of if the time it would take the entity to move into the tile is at least the time remaining for the other block to finish moving out of the space. Also, crates can push each other now.
* Shift-pushingKelly Rauchenberger2019-02-161-1/+1
|
* Started implementing pushing, but not reallyKelly Rauchenberger2019-02-161-1/+21
|
* Very basic ECSKelly Rauchenberger2019-02-031-0/+31