diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-15 23:15:46 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-15 23:15:46 +0100 |
| commit | f1b75538593841398e801b209376721204548e98 (patch) | |
| tree | 79915007792b20bc2877f8b4421b505d0bbddc68 | |
| parent | d1e361f74e0d424b4d6a99adea1463982d9f1475 (diff) | |
Extracted TODOs
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | main.go | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -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 @@ -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) { |
