mirror of
https://github.com/photonstorm/phaser
synced 2024-12-30 06:53:07 +00:00
8 lines
272 B
JavaScript
8 lines
272 B
JavaScript
|
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));
|
||
|
});
|