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
BitmapData.drawGroup draws the immediate children of a Phaser.Group to a BitmapData. Children are only drawn if they have their exists property set to true. The children will be drawn at their x and y world space coordinates. When drawing it will take into account the child's rotation, scale and alpha values. No iteration takes place. Groups nested inside other Groups will not be iterated through.
BitmapData.copy `tx` parameter if `null` and `source` is a Display Object, it will default to `source.x`.
BitmapData.copy `ty` parameter if `null` and `source` is a Display Object, it will default to `source.y`.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Version 2.2.2 - "Alkindar" - in development
78
78
* Line.normalAngle gets the angle of the line normal in radians.
79
79
* Line.normalX and Line.normalY contain the x and y components of the left-hand normal of the line.
80
80
* Line.fromAngle will sets this line to start at the given `x` and `y` coordinates and for the segment to extend at `angle` for the given `length`.
81
+
* BitmapData.drawGroup draws the immediate children of a Phaser.Group to a BitmapData. Children are only drawn if they have their `exists` property set to `true`. The children will be drawn at their `x` and `y` world space coordinates. When drawing it will take into account the child's rotation, scale and alpha values. No iteration takes place. Groups nested inside other Groups will not be iterated through.
81
82
82
83
### Updates
83
84
@@ -94,6 +95,8 @@ Version 2.2.2 - "Alkindar" - in development
94
95
* Particles.Arcade.Emitter.emitParticle now returns a boolean depending if a particle was emitted or not.
95
96
* Particles.Arcade.Emitter.update only updates `_counter` if a particle was successfully emitted.
96
97
* Phaser.Point.angleSq removed. It didn't work so any code relying on it would be broken, and it's unclear what it was meant for (thanks @nextht#1396)
98
+
* BitmapData.copy `tx` parameter if `null` and `source` is a Display Object, it will default to `source.x`.
99
+
* BitmapData.copy `ty` parameter if `null` and `source` is a Display Object, it will default to `source.y`.
* @param {number} [y=0] - The y coordinate representing the top-left of the region to copy from the source image.
970
970
* @param {number} [width] - The width of the region to copy from the source image. If not specified it will use the full source image width.
971
971
* @param {number} [height] - The height of the region to copy from the source image. If not specified it will use the full source image height.
972
-
* @param {number} [tx] - The x coordinate to translate to before drawing. If not specified it will default to the `x` parameter.
973
-
* @param {number} [ty] - The y coordinate to translate to before drawing. If not specified it will default to the `y` parameter.
972
+
* @param {number} [tx] - The x coordinate to translate to before drawing. If not specified it will default to the `x` parameter. If `null` and `source` is a Display Object, it will default to `source.x`.
973
+
* @param {number} [ty] - The y coordinate to translate to before drawing. If not specified it will default to the `y` parameter. If `null` and `source` is a Display Object, it will default to `source.y`.
974
974
* @param {number} [newWidth] - The new width of the block being copied. If not specified it will default to the `width` parameter.
975
975
* @param {number} [newHeight] - The new height of the block being copied. If not specified it will default to the `height` parameter.
976
976
* @param {number} [rotate=0] - The angle in radians to rotate the block to before drawing. Rotation takes place around the center by default, but can be changed with the `anchor` parameters.
0 commit comments