pause menu on selection

you can see your build while in the power up selection menu
balance - metamaterial cloaking field gives 111% more damage (up from 66%)

mod: Newton's 1st law - harm reduction when moving fast (thanks NoHaxJustPi)
mod: Newton's 2nd law - damage increase while moving fast
This commit is contained in:
landgreen
2020-11-25 05:00:09 -08:00
parent 313a9f861f
commit 0c319d3049
7 changed files with 82 additions and 49 deletions

View File

@@ -94,7 +94,7 @@ const spawn = {
me.frictionAir = 0.01;
me.memory = Infinity;
me.locatePlayer();
const density = 1
const density = 0.95
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() {
@@ -104,7 +104,7 @@ const spawn = {
};
me.onDamage = function() {};
me.cycle = 420;
me.endCycle = 720;
me.endCycle = 780;
me.mode = 0;
me.do = function() {
Matter.Body.setPosition(this, { //hold position
@@ -173,7 +173,7 @@ const spawn = {
this.modeSuck()
this.modeLasers()
}
me.spawnInterval = 362
me.spawnInterval = 395
me.modeSpawns = function() {
if (!(this.cycle % this.spawnInterval) && !mech.isBodiesAsleep && mob.length < 40) {
if (this.mode !== 3) Matter.Body.setAngularVelocity(this, 0.1)