From dba28cf12d3ab17db9a33d1fa047af7f4d8ec3cd Mon Sep 17 00:00:00 2001 From: ibilic1 Date: Sat, 15 Apr 2023 15:12:17 +0200 Subject: [PATCH] [ALGEBRA-00] change of Ship's collision method to make Ship immortal --- game.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/game.js b/game.js index 4f0a717..c6f9536 100644 --- a/game.js +++ b/game.js @@ -438,13 +438,8 @@ Ship = function () { this.collision = function (other) { SFX.explosion(); Game.explosionAt(other.x, other.y); - Game.FSM.state = 'player_died'; - this.visible = false; - this.currentNode.leave(this); - this.currentNode = null; - Game.lives--; + this.visible = true; }; - }; Ship.prototype = new Sprite();