From 4eff13915f3b591e0bb8255436babe1c79a8b7f3 Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Tue, 2 Oct 2018 14:00:51 -0700 Subject: [PATCH] Reposition and rename score fields --- src/state/index.js | 4 +-- src/templates/gameUi.html | 57 +++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/state/index.js b/src/state/index.js index 29c7a07..2e7b325 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -109,9 +109,9 @@ AFRAME.registerState({ */ playbuttonclick: (state) => { // Reset score. - state.score.maxStreak = 0; + state.score.combo = 0; state.score.score = 0; - state.score.streak = 0; + state.score.multiplier = 0; // Set challenge. `beat-loader` is listening. Object.assign(state.challenge, state.menuSelectedChallenge); diff --git a/src/templates/gameUi.html b/src/templates/gameUi.html index 32b6f19..f2b47b3 100644 --- a/src/templates/gameUi.html +++ b/src/templates/gameUi.html @@ -1,30 +1,29 @@ - - - - - - - - + + + + + + + + +