mirror of
https://github.com/photonstorm/phaser
synced 2024-12-27 13:33:35 +00:00
9 lines
304 B
JavaScript
9 lines
304 B
JavaScript
var GameObjectCreator = require('../../scene/plugins/GameObjectCreator');
|
|
var Group = require('./Group');
|
|
|
|
// When registering a factory function 'this' refers to the GameObjectCreator context.
|
|
|
|
GameObjectCreator.register('group', function (config)
|
|
{
|
|
return new Group(this.scene, null, config);
|
|
});
|