From b9422c8c74c7141f74673ff3aad5f58cc398058c Mon Sep 17 00:00:00 2001 From: landgreen Date: Thu, 20 Feb 2020 06:42:22 -0800 Subject: [PATCH] wording --- js/game.js | 55 ++++++++++++++--------------------------------------- js/level.js | 4 ++-- style.css | 4 ++++ todo.txt | 2 -- 4 files changed, 20 insertions(+), 45 deletions(-) diff --git a/js/game.js b/js/game.js index d4168a6..cfb3feb 100644 --- a/js/game.js +++ b/js/game.js @@ -636,33 +636,8 @@ const game = { } }, checks() { - // if 4000px deep - if (mech.pos.y > game.fallHeight) { + if (mech.pos.y > game.fallHeight) { // if 4000px deep mech.death(); - // if (b.modNonEuclidean) { - // Matter.Body.setPosition(player, { - // x: player.position.x, - // y: player.position.y - 12000 - // }); - // Matter.Body.setVelocity(player, { - // x: player.velocity.x, - // y: player.velocity.y * 0 - // }); - - // mech.pos.x = player.position.x; - // mech.pos.y = playerBody.position.y - mech.yOff; - - // //smoothed mouse look translations - // const scale = 10; - // mech.transSmoothX = canvas.width2 - mech.pos.x - (game.mouse.x - canvas.width2) * scale; - // mech.transSmoothY = canvas.height2 - mech.pos.y - (game.mouse.y - canvas.height2) * scale; - - // mech.transX = mech.transSmoothX - // mech.transY = mech.transSmoothY - - // } else { - // mech.death(); - // } } if (!(mech.cycle % 60)) { //once a second checks @@ -680,22 +655,20 @@ const game = { } } - - } - - if (!(game.cycle % 420)) { //once every 7 seconds - fallCheck = function (who) { - let i = who.length; - while (i--) { - if (who[i].position.y > game.fallHeight) { - Matter.World.remove(engine.world, who[i]); - who.splice(i, 1); + if (!(game.cycle % 420)) { //once every 7 seconds + fallCheck = function (who) { + let i = who.length; + while (i--) { + if (who[i].position.y > game.fallHeight) { + Matter.World.remove(engine.world, who[i]); + who.splice(i, 1); + } } - } - }; - fallCheck(mob); - fallCheck(body); - fallCheck(powerUp); + }; + fallCheck(mob); + fallCheck(body); + fallCheck(powerUp); + } } }, testingOutput() { diff --git a/js/level.js b/js/level.js index 55cd089..b4956f6 100644 --- a/js/level.js +++ b/js/level.js @@ -406,8 +406,8 @@ const level = { spawn.mapRect(-300, -800, 50, 800); spawn.mapRect(-100, -20, 100, 30); spawn.mapRect(-300, -10, 500, 50); - spawn.mapRect(150, -515, 50, 365); - spawn.bodyRect(170, -130, 14, 140, 1, spawn.propsFriction); //door to starting room + spawn.mapRect(150, -510, 50, 365); + spawn.bodyRect(170, -130, 14, 145, 1, spawn.propsFriction); //door to starting room spawn.mapRect(-300, 0, 1000, 300); //ground spawn.mapRect(-300, 250, 6300, 300); //deeper ground spawn.bodyRect(2100, 50, 80, 80); diff --git a/style.css b/style.css index 268b305..daa7600 100644 --- a/style.css +++ b/style.css @@ -243,6 +243,10 @@ summary { color: #ccc; } +.build-grid-disabled:hover { + background-color: #fff; +} + #info { position: absolute; bottom: 3px; diff --git a/todo.txt b/todo.txt index 9b83eda..10e3a4f 100644 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,5 @@ ************** TODO - n-gon ************** -mod - nano-scale field makes spores instead of drones - mod - mines - fire something instead of needles on activation foam?, flak?, vacuum bomb, super balls make a different mod for each type of bullet mine can fire