Phaser API Documentation

  Version: 

Member of: Phaser.Utils.Array

<static> RotateLeft(array, [total])

Description:

Moves the element at the start of the array to the end, shifting all items in the process. The "rotation" happens to the left.

Parameters:

name type arguments Default description
array array

The array to shift to the left. This array is modified in place.

total number <optional> 1

The number of times to shift the array.

Returns:
Description:

The most recently shifted element.

Type:
  • *
Since: 3.0.0