SLOW OPENING DOORs, END OF THE WORLD literally

exit doors take a bit longer to open
  it's nice to take a few seconds to relax between levels
  please don't submit a bug report about this

plasma torch energy regen 6->10
perfect diamagnetism energy regen 6->5

a few more new images

tech: collider - after a mob dies smash power ups and change the flavor of one of them
  powerUps.randomize(where)
    if there is a tech,field,gun it will split into 4 small power ups
    else if there are at least 4 small power ups they have a 1/4 chance to combine into a tech, field, gun
    else a random small power up will change
This commit is contained in:
landgreen
2023-01-28 17:23:57 -08:00
parent c8bf77db8e
commit eb8f4b05ca
11 changed files with 131 additions and 28 deletions

View File

@@ -1187,6 +1187,7 @@ const mobs = {
leaveBody: true,
isDropPowerUp: true,
death() {
if (tech.collidePowerUps && Math.random() < tech.collidePowerUps && this.isDropPowerUp) powerUps.randomize(this.position) //needs to run before onDeath spawns power ups
this.onDeath(this); //custom death effects
this.removeConsBB();
this.alive = false; //triggers mob removal in mob[i].replace(i)
@@ -1207,9 +1208,6 @@ const mobs = {
}
requestAnimationFrame(cycle);
}
if (tech.iceIXOnDeath && this.isSlowed) {
for (let i = 0, len = 2 * Math.sqrt(Math.min(this.mass, 25)) * tech.iceIXOnDeath; i < len; i++) b.iceIX(3, Math.random() * 2 * Math.PI, this.position)
}