Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> MinSub(value, amount, min)

Description:

Subtract an amount from value, limiting the minimum result to min.

Parameters:

name type description
value number

The value to subtract from.

amount number

The amount to subtract.

min number

The minimum value to return.

Returns:
Description:

The resulting value.

Type:
  • number
Since: 3.0.0
Source: src/math/MinSub.js (Line 7)