nano-scale disable field

power up boss no longer slows down after each time you kill it

holding down the field button will stop nano-scale field from converting energy into bullets
  energy costs have been increased a bit
  nano scale can now use mod - supercapacitor
This commit is contained in:
landgreen
2020-11-19 09:59:27 -08:00
parent 15de636715
commit 4c040b073a
5 changed files with 23 additions and 18 deletions

View File

@@ -540,8 +540,13 @@ const spawn = {
me.onDeath = function() {
this.leaveBody = false;
this.dropPowerUp = false;
if (vertices > 3) spawn.powerUpBoss(this.position.x, this.position.y, vertices - 1)
if (vertices > 3) {
spawn.powerUpBoss(this.position.x, this.position.y, vertices - 1)
Matter.Body.setVelocity(mob[mob.length - 1], {
x: this.velocity.x,
y: this.velocity.y
})
}
for (let i = 0; i < powerUp.length; i++) {
powerUp[i].collisionFilter.mask = cat.map | cat.powerUp
}