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/core/Group.js
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -705,7 +705,7 @@ Phaser.Group.prototype.updateZ = function () {
705
705
*
706
706
* `Group.align(-1, 8, 32, 32)`
707
707
*
708
-
* ... will align the children so that there are 8 columns vertically (the second argument),
708
+
* ... will align the children so that there are 8 rows vertically (the second argument),
709
709
* and each row will contain 6 sprites, except the last one, which will contain 5 (totaling 48)
710
710
*
711
711
* You can also do:
@@ -723,26 +723,26 @@ Phaser.Group.prototype.updateZ = function () {
723
723
* The final argument; `offset` lets you start the alignment from a specific child index.
724
724
*
725
725
* @method Phaser.Group#align
726
-
* @param {integer} rows - The number of rows, or width, of the grid. Set to -1 for a dynamic width.
727
-
* @param {integer} columns - The number of columns, or height, of the grid. Set to -1 for a dynamic height.
726
+
* @param {integer} columns - The number of columns, or width, of the grid. Set to -1 for a dynamic width.
727
+
* @param {integer} rows - The number of rows, or height, of the grid. Set to -1 for a dynamic height.
728
728
* @param {integer} cellWidth - The width of each grid cell, in pixels.
729
729
* @param {integer} cellHeight - The height of each grid cell, in pixels.
730
730
* @param {integer} [position] - The position constant. One of `Phaser.TOP_LEFT` (default), `Phaser.TOP_CENTER`, `Phaser.TOP_RIGHT`, `Phaser.LEFT_CENTER`, `Phaser.CENTER`, `Phaser.RIGHT_CENTER`, `Phaser.BOTTOM_LEFT`, `Phaser.BOTTOM_CENTER` or `Phaser.BOTTOM_RIGHT`.
731
731
* @param {integer} [offset=0] - Optional index to start the alignment from. Defaults to zero, the first child in the Group, but can be set to any valid child index value.
0 commit comments