foam gun, mods: overcharge, supersaturate, many background adjustments

This commit is contained in:
landgreen
2019-12-15 07:43:34 -08:00
committed by GitHub
parent 320f0ef28c
commit 66479c9b82
8 changed files with 216 additions and 207 deletions

View File

@@ -43,8 +43,9 @@ const game = {
mech.hold();
level.drawFills();
game.draw.drawMapPath();
b.draw();
b.fire();
b.bulletActions();
mobs.healthBar();
game.drawCircle();
ctx.restore();
}
@@ -415,6 +416,8 @@ const game = {
b.activeGun = null;
b.setModDefaults(); //remove mods
game.updateModHUD();
mech.fieldEnergyMax = 1
mech.maxHealth = 1
mech.fieldUpgrades[0].effect(); //set to default field
game.paused = false;
build.isShowingBuilds = false
@@ -873,7 +876,7 @@ const game = {
for (let i = 0, len = body.length; i < len; ++i) {
let vertices = body[i].vertices;
ctx.moveTo(vertices[0].x, vertices[0].y);
for (let j = 1; j < vertices.length; j += 1) {
for (let j = 1; j < vertices.length; j++) {
ctx.lineTo(vertices[j].x, vertices[j].y);
}
ctx.lineTo(vertices[0].x, vertices[0].y);