diff --git a/global/globalScript.js b/global/globalScript.js
index 63e22b8..b053b1e 100644
--- a/global/globalScript.js
+++ b/global/globalScript.js
@@ -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;
diff --git a/global/pxDensity.js b/global/pxDensity.js
index e7f394a..8b41224 100644
--- a/global/pxDensity.js
+++ b/global/pxDensity.js
@@ -1,12 +1,15 @@
let pxDensity = parseFloat(getComputedStyle(document.body).getPropertyValue("--pxDensity"))
let pxDensityDefined = false
-let densityWidth = document.documentElement.clientWidth / 256
-let densityHeight = document.documentElement.clientHeight / 164
+let pxWidth = 256
+let pxHeight = 164
+
+let densityWidth = document.documentElement.clientWidth / pxWidth
+let densityHeight = document.documentElement.clientHeight / pxHeight
function calcPixelDensity() {
- densityWidth = document.documentElement.clientWidth / 256
- densityHeight = document.documentElement.clientHeight / 164
+ densityWidth = document.documentElement.clientWidth / pxWidth
+ densityHeight = document.documentElement.clientHeight / pxHeight
let widest = Math.max(densityWidth, densityHeight)
diff --git a/index.html b/index.html
index af4b56a..0699987 100644
--- a/index.html
+++ b/index.html
@@ -35,9 +35,12 @@
+
+
+
-