mirror of
https://github.com/photonstorm/phaser
synced 2025-03-01 05:47:28 +00:00
Removed un-used file.
This commit is contained in:
parent
a6365c5339
commit
fd4cae12fc
1 changed files with 0 additions and 42 deletions
|
@ -1,42 +0,0 @@
|
|||
var Class = require('../utils/Class');
|
||||
var PluginManager = require('../plugins/PluginManager');
|
||||
|
||||
var TestPlugin = new Class({
|
||||
|
||||
initialize:
|
||||
|
||||
function TestPlugin (scene)
|
||||
{
|
||||
this.scene = scene;
|
||||
|
||||
this.systems = scene.sys;
|
||||
|
||||
this.mapping = 'test';
|
||||
|
||||
console.log('TestPlugin is alive');
|
||||
|
||||
if (!scene.sys.settings.isBooted)
|
||||
{
|
||||
scene.sys.events.once('boot', this.boot, this);
|
||||
}
|
||||
},
|
||||
|
||||
boot: function ()
|
||||
{
|
||||
console.log('TestPlugin has booted');
|
||||
|
||||
this.scene[this.mapping] = this;
|
||||
},
|
||||
|
||||
fire: function (img)
|
||||
{
|
||||
console.log('Hello!');
|
||||
|
||||
this.systems.add.image(400, 300, img);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
PluginManager.register('test', TestPlugin);
|
||||
|
||||
module.exports = TestPlugin;
|
Loading…
Add table
Reference in a new issue