ruins level rework

ruins level is larger, more balanced for combat, with easier platforming

vanish element
  vanish slower if they are wider
  delete blocks caught inside it as it returns
This commit is contained in:
landgreen
2022-01-03 18:39:28 -08:00
parent 1ef77b7971
commit 635dd728da
6 changed files with 137 additions and 99 deletions

View File

@@ -1918,8 +1918,8 @@ const spawn = {
me.frictionAir = 0.0067;
me.g = 0.0002; //required if using this.gravity
me.seePlayerFreq = 300;
const springStiffness = 0.0001; //simulation.difficulty
const springDampening = 0.005;
const springStiffness = 0.00008; //simulation.difficulty
const springDampening = 0.01;
me.springTarget = {
x: me.position.x,
@@ -2006,7 +2006,7 @@ const spawn = {
this.cons2.length = 100 + 1.5 * this.radius;
this.isInvulnerable = false
this.invulnerabilityCountDown = 45 + Math.max(0, 70 - simulation.difficulty)
this.invulnerabilityCountDown = 60 + Math.max(0, 70 - simulation.difficulty * 0.5)
this.damageReduction = this.startingDamageReduction
for (let i = 0; i < this.babyList.length; i++) {
if (this.babyList[i].alive) this.babyList[i].damageReduction = this.startingDamageReduction