File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,19 +8,18 @@ var Video = require('./Video');
88var GameObjectFactory = require ( '../GameObjectFactory' ) ;
99
1010/**
11- * Creates a new Image Game Object and adds it to the Scene.
11+ * Creates a new Video Game Object and adds it to the Scene.
1212 *
13- * Note: This method will only be available if the Image Game Object has been built into Phaser.
13+ * Note: This method will only be available if the Video Game Object has been built into Phaser.
1414 *
1515 * @method Phaser.GameObjects.GameObjectFactory#video
1616 * @since 3.20.0
1717 *
1818 * @param {number } x - The horizontal position of this Game Object in the world.
1919 * @param {number } y - The vertical position of this Game Object in the world.
20- * @param {string } texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.
21- * @param {(string|integer) } [frame] - An optional frame from the Texture this Game Object is rendering with.
20+ * @param {string } [key] - Optional key of the Video this Game Object will play, as stored in the Video Cache.
2221 *
23- * @return {Phaser.GameObjects.Image } The Game Object that was created.
22+ * @return {Phaser.GameObjects.Video } The Game Object that was created.
2423 */
2524GameObjectFactory . register ( 'video' , function ( x , y , key )
2625{
You can’t perform that action at this time.
0 commit comments