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: src/gameobjects/BitmapText.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ Phaser.BitmapText = function (game, x, y, font, text, size) {
54
54
*/
55
55
this.type=Phaser.BITMAPTEXT;
56
56
57
+
/**
58
+
* @property {number} z - The z-depth value of this object within its Group (remember the World is a Group as well). No two objects in a Group can have the same z value.
59
+
*/
60
+
this.z=0;
61
+
57
62
/**
58
63
* @property {Phaser.Point} world - The world coordinates of this Sprite. This differs from the x/y coordinates which are relative to the Sprites container.
* @property {number} z - The z-depth value of this object within its Group (remember the World is a Group as well). No two objects in a Group can have the same z value.
47
+
*/
48
+
this.z=0;
49
+
45
50
/**
46
51
* @property {Phaser.Point} world - The world coordinates of this Sprite. This differs from the x/y coordinates which are relative to the Sprites container.
Copy file name to clipboardExpand all lines: src/gameobjects/Text.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,11 @@ Phaser.Text = function (game, x, y, text, style) {
48
48
*/
49
49
this.type=Phaser.TEXT;
50
50
51
+
/**
52
+
* @property {number} z - The z-depth value of this object within its Group (remember the World is a Group as well). No two objects in a Group can have the same z value.
53
+
*/
54
+
this.z=0;
55
+
51
56
/**
52
57
* @property {Phaser.Point} world - The world coordinates of this Sprite. This differs from the x/y coordinates which are relative to the Sprites container.
0 commit comments