From f1b75538593841398e801b209376721204548e98 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 15 Jan 2026 23:15:46 +0100 Subject: Extracted TODOs --- README.md | 3 +++ main.go | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4cca5c..bd1b848 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ - rename Selection to Selectable - extract todos in todo list - abstraction between ebiten and update to handle inputs in a simulation? +- getMoveMap could be a maintained index +- entityAt could be a maintained index +- KeyPatrolRequest shortcut should be Q ## Bugs diff --git a/main.go b/main.go index 80ee064..a4e811a 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,6 @@ func (g *Game) Append(components Components, mask ecs.Mask) ecs.Entity { return ecs.Entity(len(g.Mask) - 1) } -// TODO: This could be a maintained index func (g *Game) getMoveMap() physics.MoveMap { required := ecs.CM_Position blocked := map[physics.Point]bool{} @@ -87,7 +86,6 @@ func (g *Game) getMoveMap() physics.MoveMap { return physics.MoveMap{Width: 3200, Height: 2400, Blocked: blocked} } -// TODO: This could be a maintained index func (g *Game) entityAt(position physics.Point) ecs.Entity { required := ecs.CM_Position for i, mask := range g.Mask { @@ -112,7 +110,7 @@ func getAllStorageDockings(g *Game) []physics.Point { const ( KeySpawnRequest = ebiten.KeyS - KeyPatrolRequest = ebiten.KeyA // TODO: Should be Q + KeyPatrolRequest = ebiten.KeyA ) func (g *Game) updateSelecting(cursor physics.Point, moveMap physics.MoveMap) { -- cgit v1.3