added god mode

This commit is contained in:
Kevin Ngo
2018-10-15 14:39:36 -07:00
parent 672474587b
commit e8c61638dd

View File

@@ -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;