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
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ Version 2.0.4 - "Mos Shirare" - in development
75
75
* All Game Objects have a new property: destroyPhase (boolean) which is true if the object is in the process of being destroyed, otherwise false.
76
76
* If Tween.yoyo was true but repeat was 0 then it wouldn't yoyo. Now if yoyo is set, but not repeat, the repeat count gets set to 1 (thanks @hilts-vaughan, fix #744)
77
77
* RandomDataGenerator.integerInRange uses a new method of rounding the value to an integer to avoid distribution probability issues (thanks PhaserFan)
78
+
* Updated the Device little / big endianess check.
Copy file name to clipboardExpand all lines: src/core/Game.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
208
208
this.particles=null;
209
209
210
210
/**
211
-
* @property {Phaser.BitmapData} scratch - A handy BitmapData scratch-pad that can be used for off-screen bitmap manipulation.
211
+
* @property {Phaser.BitmapData} scratch - A handy BitmapData scratch-pad that can be used for off-screen bitmap manipulation. Defaults to 1024 x 1024 in size and doesn't upload to the GPU.
* Draws the given image to this BitmapData at the coordinates specified. If you need to only draw a part of the image use BitmapData.copyPixels instead.
304
365
*
305
-
* @param {HTMLImage|string} source - The Image to draw. If you give a key it will try and find the Image in the Game.Cache.
306
-
* @param {number} destX - The destination x coordinate to draw the image to.
307
-
* @param {number} destY - The destination y coordinate to draw the image to.
366
+
* @method Phaser.BitmapData#draw
367
+
* @param {HTMLImage|string} source - The Image to draw. If you give a string it will try and find the Image in the Game.Cache.
368
+
* @param {number} [x=0] - The x coordinate to draw the image to.
369
+
* @param {number} [y=0] - The y coordinate to draw the image to.
* Draws the given image to this BitmapData at the coordinates specified. If you need to only draw a part of the image use BitmapData.copyPixels instead.
390
+
*
391
+
* @method Phaser.BitmapData#drawSprite
392
+
* @param {Phaser.Sprite|Phaser.Image} sprite - The Sprite to draw. Must have a loaded texture and frame.
393
+
* @param {number} [x=0] - The x coordinate to draw the Sprite to.
394
+
* @param {number} [y=0] - The y coordinate to draw the Sprite to.
0 commit comments