A Plugin with active=true has its preUpdate and update methods called by the parent, otherwise they are skipped.
A reference to the currently running game.
A flag to indicate if this plugin has a postRender method.
A flag to indicate if this plugin has a postUpdate method.
A flag to indicate if this plugin has a preUpdate method.
A flag to indicate if this plugin has a render method.
A flag to indicate if this plugin has an update method.
The parent of this plugin. If added to the PluginManager the parent will be set to that, otherwise it will be null.
A Plugin with visible=true has its render and postRender methods called by the parent, otherwise they are skipped.
Load a navmesh from Tiled. Currently assumes that the polygons are squares! Does not support tilemap layer scaling, rotation or position.
Key to use when storing this navmesh within the plugin.
The ObjectLayer from a tilemap that contains the polygons that make up the navmesh.
Destroy all navmeshes created and the plugin itself.
Post-render is called after the Game Renderer and State.render have run. It is only called if visible is set to true.
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.
Remove all the meshes from the navmesh.
Remove the navmesh stored under the given key from the plugin. This does not destroy the navmesh.
Render is called right after the Game Renderer completes, but before the State.render. It is only called if visible is set to true.
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.
Generated using TypeDoc
This class can create navigation meshes for use in Phaser 2 / Phaser CE. (For Phaser 3, see PhaserNavMeshPlugin.) The navmeshes can be constructed from convex polygons embedded in a Tiled map. The class that conforms to Phaser 2's plugin structure.