aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--main.go4
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) {