aboutsummaryrefslogtreecommitdiff
path: root/spawn.go
Commit message (Collapse)AuthorAge
* Add examples catalog with subcommand dispatchMartin Kagamino Lehoux2026-06-06
| | | | | | | | | - Extract game engine from package main to engine/ library package - Create examples/ package with registry, Entry type, and BuilderDeps - Register default world as an example (moved from main()) - Add combat example: two teams of units facing each other - Rewrite main.go as thin dispatch: go run . example [name] - Update README with examples catalog one-liner
* 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.
* Get time from GameMartin Kagamino Lehoux2025-09-25
|
* refactor: Extract closestMartin Kagamino Lehoux2025-07-24
|
* Spawn target for newly spawned unitsMartin Kagamino Lehoux2025-07-09
|
* Entity buildersMartin Kagamino Lehoux2025-07-09
|
* Spawn unitsMartin Kagamino Lehoux2025-07-09