phaser/v3/src/math/MinSub.js
2016-12-07 17:16:59 +00:00

6 lines
116 B
JavaScript

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