Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebsowter/phaser-pathfinder

Find a path between two points using the A* algorithm.
https://github.com/sebsowter/phaser-pathfinder

Last synced: about 1 month ago
JSON representation

Find a path between two points using the A* algorithm.

Awesome Lists containing this project

README

        

# Phaser 3 Pathfinder

Find a path between two points using the [A\* algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm).

![Pathfinder](https://user-images.githubusercontent.com/7384630/67167093-b12d8700-f38d-11e9-8dcf-b92d5e0ca441.gif)

Inspired by [Sebastian Lague](https://twitter.com/sebastianlague)'s [coding tutorial on pathfinding](https://www.youtube.com/watch?v=-L-WgKMFuhE).

[View the demo](https://sebsowter.github.io/phaser-pathfinder/)

## Installation

Ensure you have [Node.js](https://nodejs.org) installed.

Clone this repo and `cd` to project directory.

```
npm i
```

## Tasks

Run the development server to preview locally.

```
npm start
```

Create a production build.

```
npm run build
```