field harmincs adjustments
This commit is contained in:
@@ -707,6 +707,7 @@ const mech = {
|
|||||||
if (this.onGround && !this.crouch) this.yOffGoal = this.yOffWhen.stand;
|
if (this.onGround && !this.crouch) this.yOffGoal = this.yOffWhen.stand;
|
||||||
},
|
},
|
||||||
drawHold(target, stroke = true) {
|
drawHold(target, stroke = true) {
|
||||||
|
if (target) {
|
||||||
const eye = 15;
|
const eye = 15;
|
||||||
const len = target.vertices.length - 1;
|
const len = target.vertices.length - 1;
|
||||||
ctx.fillStyle = "rgba(110,170,200," + (0.2 + 0.4 * Math.random()) + ")";
|
ctx.fillStyle = "rgba(110,170,200," + (0.2 + 0.4 * Math.random()) + ")";
|
||||||
@@ -732,6 +733,7 @@ const mech = {
|
|||||||
ctx.fill();
|
ctx.fill();
|
||||||
if (stroke) ctx.stroke();
|
if (stroke) ctx.stroke();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
holding() {
|
holding() {
|
||||||
this.fieldMeter -= this.fieldRegen;
|
this.fieldMeter -= this.fieldRegen;
|
||||||
@@ -1400,14 +1402,15 @@ const mech = {
|
|||||||
mech.fieldMode = 4;
|
mech.fieldMode = 4;
|
||||||
mech.fieldText();
|
mech.fieldText();
|
||||||
mech.setHoldDefaults();
|
mech.setHoldDefaults();
|
||||||
mech.fieldRegen *= 0.3;
|
mech.fieldRegen *= 0.5;
|
||||||
|
mech.fieldShieldingScale = 1.5;
|
||||||
|
|
||||||
mech.hold = function () {
|
mech.hold = function () {
|
||||||
if (mech.isHolding) {
|
if (mech.isHolding) {
|
||||||
mech.drawHold(mech.holdingTarget);
|
mech.drawHold(mech.holdingTarget);
|
||||||
mech.holding();
|
mech.holding();
|
||||||
mech.throw();
|
mech.throw();
|
||||||
} else if ((keys[32] || game.mouseDownRight && mech.fieldMeter > 0.1)) { //not hold but field button is pressed
|
} else if ((keys[32] || game.mouseDownRight && mech.fieldMeter > 0)) { //not hold but field button is pressed
|
||||||
mech.grabPowerUp();
|
mech.grabPowerUp();
|
||||||
mech.lookForPickUp(180);
|
mech.lookForPickUp(180);
|
||||||
} else if (mech.holdingTarget && mech.fireCDcycle < mech.cycle) { //holding, but field button is released
|
} else if (mech.holdingTarget && mech.fireCDcycle < mech.cycle) { //holding, but field button is released
|
||||||
@@ -1431,7 +1434,7 @@ const mech = {
|
|||||||
ctx.arc(mech.pos.x, mech.pos.y, grabRange3, 0, 2 * Math.PI);
|
ctx.arc(mech.pos.x, mech.pos.y, grabRange3, 0, 2 * Math.PI);
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
mech.pushMobs360(netGrabRange);
|
mech.pushMobs360(netGrabRange);
|
||||||
mech.pushBody360(netGrabRange);
|
// mech.pushBody360(netGrabRange); //can't throw block when pushhing blocks away
|
||||||
}
|
}
|
||||||
mech.drawFieldMeter()
|
mech.drawFieldMeter()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user