Improved walking system.
This commit is contained in:
7
Screeps/Math.js
Normal file
7
Screeps/Math.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
clamp: function(v, min, max){
|
||||
if(v<min) v = min;
|
||||
else if (max < v) v = max;
|
||||
return v;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user