mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
9 lines
310 B
JavaScript
9 lines
310 B
JavaScript
var GameObjectCreator = require('../../scene/plugins/GameObjectCreator');
|
|
var Graphics = require('./Graphics');
|
|
|
|
// When registering a factory function 'this' refers to the GameObjectCreator context.
|
|
|
|
GameObjectCreator.register('graphics', function (config)
|
|
{
|
|
return new Graphics(this.scene, config);
|
|
});
|