You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* An Image is a light-weight object you can use to display anything that doesn't need physics or animation.
43
-
* It can still rotate, scale, crop and receive input events. This makes it perfect for logos, backgrounds, simple buttons and other non-Sprite graphics.
44
-
*
45
-
* @method Phaser.GameObjectCreator#image
46
-
* @param {number} x - X position of the image.
47
-
* @param {number} y - Y position of the image.
48
-
* @param {string|Phaser.RenderTexture|PIXI.Texture} key - This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture or PIXI.Texture.
49
-
* @param {string|number} [frame] - If the sprite uses an image from a texture atlas or sprite sheet you can pass the frame here. Either a number for a frame ID or a string for a frame name.
50
-
* @return {Phaser.Image} the newly created sprite object.
0 commit comments