diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:05:42 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:05:42 +0200 |
| commit | 5224fdc80913597287a5f67efec5d0be3254ce59 (patch) | |
| tree | 7b6c4cac23223926ffb620a2c9a6a43caab6b613 /main.go | |
| parent | a5fef758107888853c14a592696b45768ef56df8 (diff) | |
Fmt
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
