foam bug fixes
This commit is contained in:
@@ -587,7 +587,7 @@ const spawn = {
|
||||
};
|
||||
// if (Math.random() < Math.min(0.2 + game.difficulty * 0.1, 0.7)) spawn.shield(me, x, y);
|
||||
me.do = function () {
|
||||
if (!this.isSleeping) {
|
||||
if (!mech.isBodiesAsleep) {
|
||||
this.seePlayerByLookingAt();
|
||||
const dist2 = this.distanceToPlayer2();
|
||||
//laser Tracking
|
||||
@@ -689,7 +689,7 @@ const spawn = {
|
||||
this.attraction();
|
||||
this.gravity();
|
||||
//draw
|
||||
if (!this.isSleeping) {
|
||||
if (!mech.isBodiesAsleep) {
|
||||
if (this.seePlayer.yes) {
|
||||
if (this.alpha < 1) this.alpha += 0.01;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user