Phaser API Documentation

  Version: 
depthSortCallback(a, b)

Description:

Calculates the difference of two particles, for sorting them by depth.

Parameters:

name type description
a object

The first particle.

b object

The second particle.

Returns:
Description:

The difference of a and b's y coordinates.

Type:
  • number