Phaser API Documentation

  Version: 
getRandomPoint([point])

Description:

Returns a random point within the Rectangle's bounds.

Parameters:

name type arguments description
point Phaser.Geom.Point <optional>

The object in which to store the x and y coordinates of the point.

Returns:
Description:

The updated point, or a new Point if none was provided.

Since: 3.0.0