1.0.0 • Published 8 years ago
phastar v1.0.0
Phastar - EasyStar.js pathfinder plugin for Phaser
Using Phastar
See example
dir for full example.
var walkables = [1]
pathFinder = game.plugins.add(Phaser.Plugin.PhastarPlugin)
pathFinder.setGrid(map.layers[0].data, walkables)
pathFinder.findPath([0, 0], [20, 20], function (path) {
//
})
Building
npm install
gulp dist
1.0.0
8 years ago