phaser/src/gameobjects/rendertexture/RenderTextureFactory.js

8 lines
272 B
JavaScript
Raw Normal View History

var GameObjectFactory = require('../GameObjectFactory');
var RenderTexture = require('./RenderTexture');
GameObjectFactory.register('renderTexture', function (x, y, width, height)
{
return this.displayList.add(new RenderTexture(this.scene, x, y, width, height));
});