field balancing

This commit is contained in:
lilgreenland
2019-10-02 14:12:53 -07:00
parent 1181bc8a19
commit 498157a183
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ const level = {
// game.levelsCleared = 3; //for testing to simulate possible mobs spawns // game.levelsCleared = 3; //for testing to simulate possible mobs spawns
// b.giveGuns(0) // set a starting gun for testing // b.giveGuns(0) // set a starting gun for testing
mech.fieldUpgrades[6]() //give a field power up for testing mech.fieldUpgrades[4]() //give a field power up for testing
} else { } else {
spawn.setSpawnList(); //picks a couple mobs types for a themed random mob spawns spawn.setSpawnList(); //picks a couple mobs types for a themed random mob spawns
this[this.levels[this.onLevel]](); //picks the current map from the the levels array this[this.levels[this.onLevel]](); //picks the current map from the the levels array

View File

@@ -1087,7 +1087,7 @@ const mech = {
ctx.fill(); ctx.fill();
mech.grabPowerUp(); mech.grabPowerUp();
mech.pushMobs360(mech.grabRange + 25); mech.pushMobs360(mech.grabRange + 25);
mech.lookForPickUp(); mech.lookForPickUp(180);
} else if (mech.holdingTarget && mech.fireCDcycle < game.cycle) { //holding, but field button is released } else if (mech.holdingTarget && mech.fireCDcycle < game.cycle) { //holding, but field button is released
mech.pickUp(); mech.pickUp();
} else { } else {
@@ -1146,9 +1146,9 @@ const mech = {
mech.fieldMeter -= DRAIN; mech.fieldMeter -= DRAIN;
if (mech.crouch) { if (mech.crouch) {
mech.grabRange = mech.grabRange * 0.96 + 100 * 0.04; mech.grabRange = mech.grabRange * 0.96 + 240 * 0.04;
} else { } else {
mech.grabRange = mech.grabRange * 0.96 + 220 * 0.04; mech.grabRange = mech.grabRange * 0.96 + 160 * 0.04;
} }
ctx.beginPath(); ctx.beginPath();