Phaser.Plugin. PathManager

new PathManager(game, parent)

PathManager controls a list of Paths and a list of PathFollowers.
It is the central control for the majority of the Pathing API.

Parameters:
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.

Source - plugins/path/PathManagerPlugin.js, line 17

Methods

createPathsFromJSON()

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": }

Source - plugins/path/PathManagerPlugin.js, line 47
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:16 GMT+0100 (BST) using the DocStrap template.