added starfalls / shooting stars

This commit is contained in:
2025-01-25 14:14:25 +01:00
parent fbcd8254ba
commit 2d5a5416ba
5 changed files with 141 additions and 5 deletions
+5
View File
@@ -31,6 +31,11 @@ function randomInt(min, max) {
}
function randomBool(probablity) {
return Math.random() <= probablity
}
function clampNearest(n, mul) {
if(n > 0)
return Math.ceil(n / mul) * mul;