added chronon gun

This commit is contained in:
landgreen
2019-12-13 19:01:09 -08:00
committed by GitHub
parent 75d1ca4d6b
commit 320f0ef28c
7 changed files with 237 additions and 149 deletions

View File

@@ -696,7 +696,7 @@ const mobs = {
// }
},
grow() {
if (!mech.isBodiesAsleep) {
if (!this.isSleeping) {
if (this.seePlayer.recall) {
if (this.radius < 80) {
const scale = 1.01;
@@ -830,7 +830,7 @@ const mobs = {
}
},
fire() {
if (!mech.isBodiesAsleep) {
if (!this.isSleeping) {
const setNoseShape = () => {
const mag = this.radius + this.radius * this.noseLength;
this.vertices[1].x = this.position.x + Math.cos(this.angle) * mag;
@@ -906,7 +906,7 @@ const mobs = {
this.death(); //death with no power up or body
},
timeLimit() {
if (!mech.isBodiesAsleep) {
if (!this.isSleeping) {
this.timeLeft--;
if (this.timeLeft < 0) {
this.dropPowerUp = false;