phaser/v3/src/math/MinSub.js

7 lines
116 B
JavaScript
Raw Normal View History

var MinSub = function (value, amount, min)
{
return Math.max(value - amount, min);
};
module.exports = MinSub;