level: tunnel

new community level: tunnel
by Scarlettt

drones will now pick up power ups that are in range even if they are locked onto a mob
  (if all mobs are gone they will lock onto and chase power ups)
This commit is contained in:
landgreen
2021-06-03 05:55:55 -07:00
parent e83b84f1fb
commit 005436a177
6 changed files with 553 additions and 59 deletions

View File

@@ -2058,7 +2058,8 @@ const spawn = {
me.onDeath = function() {
powerUps.spawnBossPowerUp(this.position.x, this.position.y)
};
me.rotateVelocity = Math.min(0.0045, 0.0015 * simulation.accelScale * simulation.accelScale) * (level.levelsCleared > 8 ? 1 : -1)
me.rotateVelocity = Math.min(0.0045, 0.0015 * simulation.accelScale * simulation.accelScale) * (level.levelsCleared > 8 ? 1 : -1) * (simulation.isHorizontalFlipped ? -1 : 1)
me.do = function() {
this.fill = '#' + Math.random().toString(16).substr(-6); //flash colors
this.checkStatus();