appsbu-de / phaser_plugin_pathfinding Goto Github PK
View Code? Open in Web Editor NEWPlugin for Phaser which includes Easystar.js
License: MIT License
Plugin for Phaser which includes Easystar.js
License: MIT License
Hi, using Phaser Plugin.
Tried to update the grid via:
pathfinder.setGrid( mapLayerData, walkables );
path retuned is null.
initialization works fine, but when I add / remove tiles I want to update the grid,
so I call again:
pathfinder.setGrid( mapLayerData, walkables );
Since then the returned path is always null:
pathfinder.setCallbackFunction(function(path) {... console.log(path); //returns null }
best regards,
sam
Check if Pathfinding still works with 2.2
Something is wrong with the minified version I think. I get the error in the title but everything seems fine using the full version.
Add Phaser 2.0.0
Great work on the plugin.
I fired up the demo and there are no errors in the console ... but when I click an area of the screen, a bunch of sign posts appear and nothing happened. I was wondering why the car did not move to the area you click.
Of course eventually I figured out what was up: the path is created from 0,0 to wherever you create and the signs mark the path. But it definitely wasn't intuitive for me. Maybe mention that in the index.html or readme?
hello
While using phaser 2.0.5
"Phaser v2.0.5 - Renderer: Canvas - Audio: WebAudio - http://phaser.io" phaser.min.js:8
TypeError: a is undefined phaser.min.js:7
TypeError: sprite is undefined Game.js:68
Any idea ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.