diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-03 19:05:41 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-03 19:05:41 +0200 |
| commit | 35b316123c6d768cfb064c1abfdbc41bb54b9e68 (patch) | |
| tree | 4f3cf24f71482dc704e81e756b79d0cb1d11a0e0 /person.go | |
| parent | e53b735c70b784f8bf8aa4d442f30dd8dfff6730 (diff) | |
feat: Move along grid
Diffstat (limited to 'person.go')
| -rw-r--r-- | person.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,9 +41,9 @@ func (p Person) CollisionBounds() Rectangle { } func (p *Person) MoveTo(destination Point) { - p.move = Move{IsActive: true, Destination: destination} + p.move = NewMove(p.Position, destination) } func (p *Person) Update() { - p.Position = p.move.Update(p.Position, 30) + p.Position = p.move.Update(p.Position, 10) } |
