temp fix score nan

This commit is contained in:
Kevin Ngo
2018-12-11 01:50:23 -08:00
parent e7203ff834
commit e70692353d

View File

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