From b073a7d5daa096eda604925b343a748b5542be86 Mon Sep 17 00:00:00 2001 From: adrien Date: Sun, 25 Jun 2023 22:22:53 +0200 Subject: [PATCH] escape restart --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index db73bee..c9b3a05 100644 --- a/main.js +++ b/main.js @@ -487,7 +487,6 @@ function playerCollisions() { if (raftOctree.capsuleIntersect(playerCollider)) { - camera.position.y = raft.position.y + 0.9; if (!escaped) gameEnd() @@ -623,6 +622,7 @@ function teleportPlayerIfOob() { camera.position.copy(playerCollider.end); camera.rotation.set(0, 0, 0); message.className = "" + escaped = false; }