0.2.1 • Published 6 years ago

phaser-easystar-ts v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

About

npm version

A Phaser 2 plugin for using easystarjs path finding.

Please note that this plugin bundles easystarjs (currently 0.4.1), so you don't need to include that dependency.

Code based on https://github.com/appsbu-de/phaser_plugin_pathfinding

Try out demo here.

Usage

See demo/Game.js for a javascript example.

Typescript usage

import PhaserEasystar from "phaser-easystar-ts";

function create() {
    const map = game.add.tilemap('desert');
    ...
    const pathfinder = new PhaserEasystar(game);
    pathfinder.setGrid(map.layers[0].data, walkables);
}

License

Under MIT

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago