PluginManager#add()

add(plugin, parameter) → {Phaser.Plugin} Add a new Plugin into the PluginManager.The Plugin must have 2 properties: game and parent. Plugin.game is set to the game reference the PluginManager uses, and parent is set to the PluginManager. Parameters Name Type Argument Description plugin object | Phaser.Plugin The Plugin to add into the PluginManager. This can be a function or an existing object. parameter * <repeatable> Additional arguments that will be passed to the Plugin.init

Plugin.PathManager#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 code: plugins/path/PathManagerPlugin.js (Line 17)

Plugin.PathManager#createPathsFromJSON()

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 code: plugins/path/PathManagerPlugin.js (Line 47)

Plugin#visible

visible : boolean A Plugin with visible=true has its render and postRender methods called by the parent, otherwise they are skipped. Source code: core/Plugin.js (Line 39)

Plugin#update()

update() Update is called after all the core subsystems (Input, Tweens, Sound, etc) and the State have updated, but before the render.It is only called if active is set to true. Source code: core/Plugin.js (Line 83)

Plugin#render()

render() Render is called right after the Game Renderer completes, but before the State.render.It is only called if visible is set to true. Source code: core/Plugin.js (Line 91)

Plugin#preUpdate()

preUpdate() Pre-update is called at the very start of the update cycle, before any other subsystems have been updated (including Physics).It is only called if active is set to true. Source code: core/Plugin.js (Line 75)

Plugin#postRender()

postRender() Post-render is called after the Game Renderer and State.render have run.It is only called if visible is set to true. Source code: core/Plugin.js (Line 99)

Plugin#Plugin

new Plugin(game, parent) This is a base Plugin template to use for any Phaser plugin development. Parameters Name Type Description game Phaser.Game A reference to the currently running game. parent any The object that owns this plugin, usually Phaser.PluginManager. Source code: core/Plugin.js (Line 15)

Plugin#parent

parent :any The parent of this plugin. If added to the PluginManager the parent will be set to that, otherwise it will be null. Source code: core/Plugin.js (Line 27)