summary refs log tree commit diff stats
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Editor now allows tile placementKelly Rauchenberger2019-03-101-14/+6
| | | | You can scroll through the three layers (map, track, object) with Z/X. You can swap between focusing on the map and the tileset with TAB. You can place tiles with enter or space. Pretty rudimentary, but it's a start.
* Editor now renders a tiled background imageKelly Rauchenberger2019-02-241-0/+3
|
* Started state machineKelly Rauchenberger2019-02-241-6/+43
| | | | The "--editor" flag can be passed to the program to start it in editor mode, which is currently nothing. The Renderer class was removed here, as each state basically needs to do its own rendering. However, refactoring to make this more elegant will probably occur in the future.
* Started implementing scheduleKelly Rauchenberger2019-02-201-27/+0
| | | | | | | | | | 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-1/+12
| | | | | | 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.
* Pushing works nowKelly Rauchenberger2019-02-161-4/+2
|
* Started implementing pushing, but not reallyKelly Rauchenberger2019-02-161-1/+11
|
* Very basic ECSKelly Rauchenberger2019-02-031-0/+60