Add hit/miss logic and hit / combo score counting. Also rough visual indication of missed beat

This commit is contained in:
Diego Marcos
2018-10-02 17:52:03 -07:00
parent a18364e85f
commit d2f216a1ea
3 changed files with 63 additions and 41 deletions

View File

@@ -66,6 +66,15 @@ AFRAME.registerState({
localStorage.setItem('activeHand', state.activeHand);
},
beathit: state => {
state.score.score += 1;
state.score.combo += 1;
},
beatmissed: state => {
state.score.combo = 0;
},
beatloaderfinish: (state) => {
state.challenge.isLoading = false;
},