This commit is contained in:
lilgreenland
2019-10-21 15:27:40 -07:00
parent e100d1ed29
commit c93788e8b5
2 changed files with 5 additions and 25 deletions

View File

@@ -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();

View File

@@ -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);