phaser/src/gameobjects/group/GroupCreator.js

10 lines
287 B
JavaScript
Raw Normal View History

var GameObjectCreator = require('../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);
});