From 7b805f2bcc3b25c9077ec39fc0693091a4e05b0a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 6 Oct 2023 06:38:59 +0200 Subject: fix(move): Draw move from start --- move.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'move.go') diff --git a/move.go b/move.go index 2568e53..f9a54a3 100644 --- a/move.go +++ b/move.go @@ -210,7 +210,7 @@ func DrawMove(screen *ebiten.Image, e *Entity) { last := e.Position.Value dx := +e.Image.Value.Bounds().Dx() / 2 dy := +e.Image.Value.Bounds().Dy() / 2 - for _, point := range e.Move.Value.Path[1:] { + for _, point := range e.Move.Value.Path { vector.StrokeLine(screen, float32(last.X+dx), float32(last.Y+dy), float32(point.X+dx), float32(point.Y+dy), 10.0, color.RGBA{256 * 3 / 16, 256 * 3 / 16, 256 * 3 / 16, 256 / 4}, true) last = point } -- cgit v1.3