Death explosions

This commit is contained in:
zenoamaro committed 2019-06-27 00:51:27 +02:00
1 parent ea89cbc2cc
commit 82cba65527
5 files changed
+36 -25

No files matched your search

-4
View File
@@ -14,10 +14,6 @@ export function randomInt(min, max) {
return Math.round(random(min, max));
}
export function sample(arr) {
return arr[randomInt(0, arr.length-1)];
}
export function clamp(min, x, max) {
return Math.max(min, Math.min(x, max));
}