snakeBoss - boss with a tail that grows longer after damage or eating power ups

trying out putting actual system error messages directly into the in-game console

charmed baryons: 0.66->0.8x movement
grappling hook field: 0.6->0.5 damage taken
This commit is contained in:
landgreen
2024-07-06 17:22:58 -07:00
parent 022e2fa80f
commit 20f9b790de
5 changed files with 141 additions and 80 deletions

View File

@@ -12,6 +12,10 @@ Math.hash = s => {
// document.getElementById("seed").placeholder = Math.initialSeed = Math.floor(Date.now() % 100000) //random every time: just the time in milliseconds UTC
window.addEventListener('error', error => {
simulation.makeTextLog(`<strong style='color:red;'>ERROR:</strong> ${error.message} <u>${error.filename}:${error.lineno}</u>`)
});
document.getElementById("seed").placeholder = Math.initialSeed = String(Math.floor(Date.now() % 100000))
Math.seed = Math.abs(Math.hash(Math.initialSeed)) //update randomizer seed in case the player changed it
Math.seededRandom = function (min = 0, max = 1) { // in order to work 'Math.seed' must NOT be undefined