aboutsummaryrefslogtreecommitdiff
path: root/main.go
Commit message (Collapse)AuthorAge
* Add viewport/camera system with pan, zoom, and world-space cursor conversionMartin Kagamino Lehoux2026-05-07
| | | | | | | | | | | | | | | | - New camera.go: Camera struct with arrow-key pan, scroll-wheel zoom toward cursor, middle-mouse drag, exponential velocity decay, and world-bounds clamping - Layout() now returns screen dimensions (960x640) instead of world size so the camera GeoM transform drives all rendering - All world entities, halos, text, path lines and spawn target converted via camera transform in draw.go; banners remain in screen space - selection.go: separate startScreen field so the drag-select box draws in screen space while selection logic stays in world space - Banner heights and font sizes scaled down to fit the 640px logical screen - Three new integration tests: ScreenToWorld round-trip, bounds clamping, zoom-toward-cursor stability Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Switch font to Cinzel variable fontMartin Kagamino Lehoux2026-03-01
|
* Selection is now SelectableMartin Kagamino Lehoux2026-02-17
|
* Extracted TODOsMartin Kagamino Lehoux2026-01-15
|
* First integration testMartin Kagamino Lehoux2026-01-15
|
* 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
|
* Unify selection code and unselectMartin Kagamino Lehoux2025-09-25
|
* Improve selection codeMartin Kagamino Lehoux2025-09-25
|
* refactor: ECS boundsMartin Kagamino Lehoux2025-07-25
|
* refactor: ECS patrol orderMartin Kagamino Lehoux2025-07-25
|
* feat: Selection with priorityMartin Kagamino Lehoux2025-07-25
|
* fix: More up-to-date moveMapMartin Kagamino Lehoux2025-07-24
|
* refactor: Extract closestMartin Kagamino Lehoux2025-07-24
|
* refactor: Props based entity builder for evolutivityMartin Kagamino Lehoux2025-07-24
|
* fix: main move cancels ordersMartin Kagamino Lehoux2025-07-24
|
* Spawn target for newly spawned unitsMartin Kagamino Lehoux2025-07-09
|
* Extract entity main actionMartin Kagamino Lehoux2025-07-09
|
* Export draw logicMartin Kagamino Lehoux2025-07-09
|
* Entity buildersMartin Kagamino Lehoux2025-07-09
|
* Profiling setupMartin Kagamino Lehoux2025-07-09
|
* Spawn unitsMartin Kagamino Lehoux2025-07-09
|
* Regroup drawingMartin Kagamino Lehoux2025-07-07
|
* Simple refactorMartin Kagamino Lehoux2025-07-04
|
* Display resource countMartin Kagamino Lehoux2025-07-04
|
* Upgrade goMartin Kagamino Lehoux2025-07-04
|
* FmtMartin Kagamino Lehoux2025-07-04
|
* Refactor into packagesMartin Kagamino Lehoux2025-07-04
|
* refactor: Rename constMartin Kagamino Lehoux2023-10-09
|
* feat(order): Gather resourcesMartin Kagamino Lehoux2023-10-06
|
* feat: Add window iconMartin Kagamino Lehoux2023-10-06
|
* fix(order): Start move of unselected units in orderMartin Kagamino Lehoux2023-10-06
|
* feat(selection): Use circle for unitsMartin Kagamino Lehoux2023-10-06
|
* fix(move): Keep current path during move if it still appliesMartin Kagamino Lehoux2023-10-02
|
* feat: Patroling orderMartin Kagamino Lehoux2023-09-19
|
* perf: One less map computation per frameMartin Kagamino Lehoux2023-09-19
|
* fix: Display selection rect above all entitiesMartin Kagamino Lehoux2023-09-19
|
* feat: Move avoid colision between moving entitiesMartin Kagamino Lehoux2023-09-18
|
* fix: Do not move through entitiesMartin Kagamino Lehoux2023-09-18
|
* refactor: Into ECSMartin Kagamino Lehoux2023-09-15
|
* refactor: Remove some features to prepare for ECSMartin Kagamino Lehoux2023-09-14
|
* feat: Change cursor on hoverMartin Kagamino Lehoux2023-09-14
|
* feat: Move with path findingMartin Kagamino Lehoux2023-09-03
|
* feat: Move along gridMartin Kagamino Lehoux2023-09-03
|
* feat: Drag & selectMartin Kagamino Lehoux2023-08-30
|
* fix: Only one person may be selected at a timeMartin Kagamino Lehoux2023-08-30
|
* feat: Display line where person is moving toMartin Kagamino Lehoux2023-08-30
|
* fix: Better physics by multiplying by 10Martin Kagamino Lehoux2023-08-30
|
* feat: Prevent move to go outside of tileMartin Kagamino Lehoux2023-08-26
|
* feat: Move to destinationMartin Kagamino Lehoux2023-08-26
|