From e8c61638dd8f983f7a3c7fbacc16919e4b422779 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Mon, 15 Oct 2018 14:39:36 -0700 Subject: [PATCH] added god mode --- src/state/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state/index.js b/src/state/index.js index cdc66b2..4c02d2b 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -311,6 +311,7 @@ function difficultyComparator (a, b) { } function takeDamage (state) { + if (AFRAME.utils.getUrlParameter('godmode')) { return; } if (!state.isPlaying) { return; } state.damage++; state.score.combo = 0;