diff --git a/src/state/index.js b/src/state/index.js index 7e51c3c..817bf0e 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -127,6 +127,7 @@ AFRAME.registerState({ state.score.maxCombo = state.score.combo; } + payload.score = isNaN(payload.score) ? 100 : payload.score; state.score.score += Math.floor(payload.score * state.score.multiplier); // Might be a math formula for this, but the multiplier system is easy reduced.