aboutsummaryrefslogtreecommitdiff
path: root/physics
Commit message (Collapse)AuthorAge
* fix: prevent entities from overlapping when arriving at the same cellMartin Kagamino Lehoux2026-03-01
| | | | | | | | | | | Update UpdateMoveSystem to maintain the moveMap as entities move within a tick. When an entity snaps to a grid cell: - Block the new cell in the moveMap immediately - Unblock the old cell Before snapping, check if the target cell was already claimed by another entity earlier in the same tick. If so, repath instead of overlapping.
* refactor: transition to struct-of-arrays ECS architectureMartin Kagamino Lehoux2026-01-15
| | | | | | | - Replace individual Entity structs with centralized component slices in Game struct (SoA layout). - Implement bitmask-based component lookup (CM_Position, CM_Move, etc.). - Convert logic from object-oriented Update() methods to standalone Systems (UpdateMoveSystem, UpdateGatherSystem, UpdateSpawnSystem). - Update rendering, selection, and input handling to iterate over component arrays.
* refactor: ECS boundsMartin Kagamino Lehoux2025-07-25
|
* refactor: Extract closestMartin Kagamino Lehoux2025-07-24
|
* refactor: Early return moveMartin Kagamino Lehoux2025-07-24
|
* Allow diagonal moveMartin Kagamino Lehoux2025-07-08
|
* Refactor into packagesMartin Kagamino Lehoux2025-07-04