PathManager controls a list of Paths and a list of PathFollowers.
It is the central control for the majority of the Pathing API.
Name | Type | Description |
---|---|---|
game | Phaser.Game | A reference to the current Phaser.Game instance. |
parent | Phaser.PluginManager | The Phaser Plugin Manager which looks after this plugin. |
create a new Path from JSON data
JSON data format:
required: "coordinateSystem":, "smoothness":, "loops":, "speed":, "pointList":[ {"x":, "y":}, ... ]
optional: "branchFrom": { "path":, "point": }, "joinTo": { "path":, "point": }
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Plugin.PathManager.html