Phaser.Plugin.SamplePlugin

new SamplePlugin()

A Sample Plugin demonstrating how to hook into the Phaser plugin system.

Source - out/plugins/SamplePlugin/SamplePlugin.js, line 5

Methods

addSprite()

Add a Sprite reference to this Plugin. All this plugin does is move the Sprite across the screen slowly.

Source - out/plugins/SamplePlugin/SamplePlugin.js, line 22

update()

This is run when the plugins update during the core game loop.

Source - out/plugins/SamplePlugin/SamplePlugin.js, line 31