aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:05:42 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:05:42 +0200
commit5224fdc80913597287a5f67efec5d0be3254ce59 (patch)
tree7b6c4cac23223926ffb620a2c9a6a43caab6b613 /main.go
parenta5fef758107888853c14a592696b45768ef56df8 (diff)
Fmt
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 5eb330e..b521616 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ type Game struct {
Selection GlobalSelection
}
-func DrawMove(screen *ebiten.Image, e *Entity) {
+func DrawMove(screen *ebiten.Image, e *Entity) {
if e.Move.IsEnabled && e.Position.IsEnabled && e.Selection.IsEnabled {
if e.Selection.Value.IsSelected && e.Move.Value.IsActive {
last := e.Position.Value
@@ -96,7 +96,7 @@ func (g *Game) updateSelecting(cursor physics.Point, moveMap physics.MoveMap) {
if entityAtDestination != nil && entityAtDestination.ResourceSource.IsEnabled {
Gather(e, entityAtDestination, g)
} else {
- physics.StartMove(&e.Move,e.Position, destination, moveMap)
+ physics.StartMove(&e.Move, e.Position, destination, moveMap)
}
}
}
@@ -147,7 +147,7 @@ func (g *Game) Update() error {
g.updatePatrolling(cursor)
}
for _, e := range g.Entities {
- physics.UpdateMove(&e.Move,&e.Position, moveMap)
+ physics.UpdateMove(&e.Move, &e.Position, moveMap)
e.UpdateOrder(g)
}
return nil