Dot beats can be cut from any direction

This commit is contained in:
Diego Marcos
2018-10-12 11:44:47 -10:00
parent 663d5d1775
commit e0e99e99a5
3 changed files with 15 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ AFRAME.registerState({
localStorage.setItem('activeHand', state.activeHand);
},
beathit: state => {
goodhit: state => {
if (state.damage > DAMAGE_DECAY) {
state.damage -= DAMAGE_DECAY;
}
@@ -98,10 +98,6 @@ AFRAME.registerState({
takeDamage(state);
},
beatwrong: state => {
takeDamage(state);
},
beatloaderfinish: (state) => {
state.challenge.isLoading = false;
},
@@ -248,6 +244,10 @@ AFRAME.registerState({
victory: function (state) {
state.isVictory = true;
},
wronghit: state => {
takeDamage(state);
}
},