---
title: "Pathfinder"
date: "2020-04-10T00:00:00+00:00"
tags: ["gamedev","JavaScript","Phaser"]
project: "The Legend of Zeta"
---

# Pathfinder

Source: https://greenzeta.com/update/pathfinder/
Last updated: 2026-01-08T04:00:08+00:00

Project: [The Legend of Zeta](https://greenzeta.com/project/the-legend-of-zeta/)

Game characters now have a path property that's set to an array of coordinates. When set, a patrol method is called on update that automatically moves the character one step closer to the next coordinate in the array. I also added a red flash to indicate a collision.
