Creates a new Video Game Object and adds it to the Scene.
Note: This method will only be available if the Video Game Object has been built into Phaser.
name | type | arguments | description |
---|---|---|---|
x | number |
The horizontal position of this Game Object in the world. |
|
y | number |
The vertical position of this Game Object in the world. |
|
key | string | <optional> |
Optional key of the Video this Game Object will play, as stored in the Video Cache. |
The Game Object that was created.