diff --git a/src/state/index.js b/src/state/index.js index 66383d7..6731dbc 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -448,9 +448,8 @@ AFRAME.registerState({ victory: function (state) { state.isVictory = true; - const accuracy = - state.score.beatsHit / - (state.score.beatsMissed + state.score.beatsHit); + // Percentage is score divided by total possible score. + const accuracy = state.score / (state.score.beatsMissed + state.score.beatsHit) * 110; state.score.accuracy = accuracy; if (accuracy === 1) {