From c93788e8b5241e8cdaa2f46f2735bf394a960d0a Mon Sep 17 00:00:00 2001 From: lilgreenland Date: Mon, 21 Oct 2019 15:27:40 -0700 Subject: [PATCH] balance --- js/level.js | 6 +++--- js/mobs.js | 24 ++---------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/js/level.js b/js/level.js index ca4da52..babff48 100644 --- a/js/level.js +++ b/js/level.js @@ -14,15 +14,15 @@ const level = { // game.zoomScale = 1400 //1400 if (game.levelsCleared === 0) { document.title = "n-gon"; - game.levelsCleared = 4; //for testing to simulate possible mobs spawns + // game.levelsCleared = 4; //for testing to simulate possible mobs spawns // b.giveGuns(1) // set a starting gun for testing // b.giveGuns("all", 1000) // mech.fieldUpgrades[1]() //give a field power up for testing - // this.intro(); //starting level + this.intro(); //starting level // this.testingMap(); // this.bosses(); - this.aerie(); + // this.aerie(); // this.rooftops(); // this.warehouse(); // this.highrise(); diff --git a/js/mobs.js b/js/mobs.js index 04d2f92..db66bf3 100644 --- a/js/mobs.js +++ b/js/mobs.js @@ -532,28 +532,6 @@ const mobs = { } ctx.globalAlpha = 1; }, - // darkness() { - // // var grd = ctx.createRadialGradient(this.position.x, this.position.y, this.eventHorizon/3, this.position.x, this.position.y, this.eventHorizon); - // // grd.addColorStop(0, "rgba(0,0,0,1)"); - // // grd.addColorStop(1, "rgba(0,0,0,0)"); - // // ctx.fillStyle=grd; - // // ctx.beginPath(); - // // ctx.arc(this.position.x, this.position.y, this.eventHorizon, 0, 2 * Math.PI); - // // ctx.fill(); - - // ctx.beginPath(); - // ctx.arc(this.position.x, this.position.y, this.eventHorizon * 0.33, 0, 2 * Math.PI); - // ctx.fillStyle = "rgba(0,0,0,0.7)"; - // ctx.fill(); - // ctx.beginPath(); - // ctx.arc(this.position.x, this.position.y, this.eventHorizon * 0.66, 0, 2 * Math.PI); - // ctx.fillStyle = "rgba(0,0,0,0.4)"; - // ctx.fill(); - // ctx.beginPath(); - // ctx.arc(this.position.x, this.position.y, this.eventHorizon, 0, 2 * Math.PI); - // ctx.fillStyle = "rgba(0,0,0,0.1)"; - // ctx.fill(); - // }, curl(range = 1000, mag = -10) { //cause all mobs, and bodies to rotate in a circle applyCurl = function (center, array) { @@ -582,7 +560,9 @@ const mobs = { applyCurl(this.position, mob); applyCurl(this.position, body); applyCurl(this.position, powerUp); + // applyCurl(this.position, bullet); // too powerful, just stops all bullets need to write a curl function just for bullets // applyCurl(this.position, [player]); + //draw limit // ctx.beginPath(); // ctx.arc(this.position.x, this.position.y, range, 0, 2 * Math.PI);