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
* Indicates the rotation of the Button in degrees, from its original orientation. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation.
74
+
* Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement player.angle = 450 is the same as player.angle = 90.
75
+
* If you wish to work in radians instead of degrees use the rotation property instead. Working in radians is also a little faster as it doesn't have to convert the angle.
76
+
*
77
+
* @name Phaser.Button#angle
78
+
* @property {number} angle - The angle of this Button in degrees.
* Changes the Texture the Sprite is using entirely. The old texture is removed and the new one is referenced or fetched from the Cache.
293
297
* This causes a WebGL texture update, so use sparingly or in low-intensity portions of your game.
294
298
*
295
-
* @method Phaser.Image#loadTexture
296
-
* @memberof Phaser.Image
299
+
* @method Phaser.Sprite#loadTexture
300
+
* @memberof Phaser.Sprite
297
301
* @param {string|Phaser.RenderTexture|Phaser.BitmapData|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, BitmapData or PIXI.Texture.
298
302
* @param {string|number} frame - If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.
299
303
*/
@@ -358,8 +362,8 @@ Phaser.Sprite.prototype.loadTexture = function (key, frame) {
358
362
* Crop allows you to crop the texture used to display this Image.
359
363
* Cropping takes place from the top-left of the Image and can be modified in real-time by providing an updated rectangle object.
360
364
*
361
-
* @method Phaser.Image#crop
362
-
* @memberof Phaser.Image
365
+
* @method Phaser.Sprite#crop
366
+
* @memberof Phaser.Sprite
363
367
* @param {Phaser.Rectangle} rect - The Rectangle to crop the Image to. Pass null or no parameters to clear a previously set crop rectangle.
* Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement player.angle = 450 is the same as player.angle = 90.
615
619
* If you wish to work in radians instead of degrees use the property Sprite.rotation instead. Working in radians is also a little faster as it doesn't have to convert the angle.
616
620
*
617
-
* @name Phaser.Image#angle
621
+
* @name Phaser.Sprite#angle
618
622
* @property {number} angle - The angle of this Image in degrees.
0 commit comments