victory screen beats hit

This commit is contained in:
Kevin Ngo
2018-11-17 03:27:40 -08:00
parent a1ca2aee92
commit 02f33c63fb
2 changed files with 23 additions and 3 deletions

View File

@@ -20,7 +20,7 @@
bind__animation="enabled: isVictory"
bind__victory-rank="rank: score.rank"
scale="0 0 0"
position="0 0.2 0.1"
position="0 0.2 0.125"
animation__rotation="property: object3D.rotation.y; from: 0; to: -360; loop: true; easing: linear; dur: 5000; startEvents: textcounterdone"
animation__scale="property: scale; from: 0 0 0; to: 1 1 1; loop: false; easing: easeOutQuad; dur: 300; startEvents: textcounterdone"
play-sound="sound: #victorySound; event: textcounterdone"
@@ -30,10 +30,19 @@
id="victoryInfoAccuracy"
mixin="font"
bind__text-counter="value: score.accuracy"
text="align: center; color: #FAFAFA; wrapCount: 22; baseline: top; width: 0.81"
text="align: left; color: #FAFAFA; wrapCount: 22; baseline: top; width: 0.81"
text-counter="suffix: %; decimals: 2; emit: true"
proxy-event="event: textcounterdone; to: .accuracyTextCounterSubscribe"
position="0.45 0.75 0"></a-entity>
position="0.75 0.725 0"></a-entity>
<a-entity
id="victoryInfoBeatsHit"
class="accuracyTextCounterSubscribe"
mixin="font"
bind__text="opacity: isVictory && 0 || 0; value: score.beatsText"
animation="property: components.text.material.uniforms.opacity.value; from: 0; to: 1; startEvents: textcounterdone"
text="align: left; color: #FAFAFA; wrapCount: 22; baseline: top; width: 0.81"
position="0.75 0.185 0"></a-entity>
<a-entity
id="victoryInfoScore"