Phaser API Documentation

  Version: 

Member of: Phaser.Actions

<static> Shuffle(items)

Description:

Shuffles the array in place. The shuffled array is both modified and returned.

Parameters:

name type description
items array | Array.<Phaser.GameObjects.GameObject>

An array of Game Objects. The contents of this array are updated by this Action.

Returns:
Description:

The array of Game Objects that was passed to this Action.

Type:
Since: 3.0.0
Source: src/actions/Shuffle.js (Line 9)