phaser/v3/src/gameobjects/group/GroupCreator.js

10 lines
304 B
JavaScript
Raw Normal View History

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);
});