improved score labels visual feedback (fixes #185)

This commit is contained in:
Diego F. Goberna
2018-11-20 22:35:40 +01:00
parent f0cedba9a5
commit 6845b5df37
5 changed files with 95 additions and 17 deletions

View File

@@ -75,7 +75,6 @@
<a-mixin
id="beatScore"
mixin="font"
score-beat
text="opacity: 0; wrapCount: 19; color: #AAA; width: 1.5"
animation__opacityin="property: components.text.material.uniforms.opacity.value; from: .5; to: 1; dur: 500; startEvents: beatscorestart"
animation__opacityout="property: components.text.material.uniforms.opacity.value; from: 1; to: 0; dur: 500; delay: 700; startEvents: beatscorestart"
@@ -83,6 +82,32 @@
animation__motiony="property: object3D.position.y; to: 0.1; dur: 500; easing: easeOutQuart; startEvents: beatscorestart"
></a-mixin>
<a-mixin
id="beatScoreOk"
score-beat="ok"
mixin="beatScore"
text="value: OK"></a-mixin>
<a-mixin
id="beatScoreGood"
score-beat="good"
mixin="beatScore"
text="value: GOOD; color: #A8E3FF"></a-mixin>
<a-mixin
id="beatScoreExcellent"
score-beat="excellent"
mixin="beatScore"
text="value: EXCELLENT; wrapCount: 16; color: #60CCFF"></a-mixin>
<a-mixin
id="beatScoreSuper"
score-beat="super"
mixin="beatScore"
text="value: SUPER!; wrapCount: 13; color: #00acfc"></a-mixin>
<a-mixin
id="superCut"
geometry="primitive: plane; width: 3; height: 3"
material="shader: superCutFxShader; transparent: true; depthWrite: false"></a-mixin>
<a-mixin
id="wall"
geometry