foam balance

beating the final boss automatically increases the difficulty mode for this run and future runs
some foam balancing, mostly buffs
standing wave harmonics gets 15% harm reduction again
This commit is contained in:
landgreen
2021-01-01 05:42:06 -08:00
parent 2c30382093
commit 3fa89b85d7
9 changed files with 215 additions and 170 deletions

View File

@@ -98,12 +98,19 @@ const spawn = {
Matter.Body.setDensity(me, density); //extra dense //normal is 0.001 //makes effective life much larger
// spawn.shield(me, x, y, 1);
me.onDeath = function() {
level.bossKilled = true;
level.exit.x = 5500;
level.exit.y = -330;
//ramp up damage
for (let i = 0; i < 2; i++) level.difficultyIncrease(simulation.difficultyMode)
//set game to the next highest difficulty level if not on why
if (simulation.difficultyMode < 6) {
simulation.difficultyMode++
document.getElementById("difficulty-select").value = simulation.difficultyMode
localSettings.difficultyMode = simulation.difficultyMode
localStorage.setItem("localSettings", JSON.stringify(localSettings)); //update local storage
simulation.makeTextLog(`<span class='color-var'>simulation</span>.difficultyMode<span class='color-symbol'>++</span>`);
}
//pull in particles
for (let i = 0, len = body.length; i < len; ++i) {