Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Utils
/
Array
Phaser 4.1.0
Phaser 4 examples
Array
10
examples
Examples
10
Array Range Utility
Demonstrates creating a patterned array from two input arrays using the Range utility with options for repeating, yoyo effects, and randomization.
Bring to Top
Demonstrates how to move a specific item to the end of an array using the BringToTop utility function.
Reverse Matrix Columns
Demonstrates how to flip a 2D array horizontally using the Matrix Reverse Columns utility.
Reverse Matrix Rows
Demonstrates how to use Phaser's matrix utility to reverse the order of rows within a 2D array.
Rotate Matrix
Demonstrates rotating a 2D array (matrix) clockwise using Phaser's Matrix utility functions.
Rotate Matrix 180
Demonstrates how to rotate a 2D array (matrix) 180 degrees using Phaser array matrix utilities.
Rotate Matrix Left
Demonstrates how to rotate a 2D array (matrix) counter-clockwise using Phaser's matrix utility functions.
Rotate Matrix Right
Demonstrates how to rotate a 2D array (matrix) 90 degrees clockwise using Phaser's Matrix utility functions.
Translate Matrix
Shift the contents of a 2D array (matrix) horizontally or vertically using the Matrix Translate utility.
Transpose Matrix
Demonstrates how to use Phaser's matrix utility to transpose a 2D array, swapping its rows and columns.