show beat score (fixes #146)

This commit is contained in:
Diego F. Goberna
2018-11-02 21:00:54 +01:00
parent 10b5fa5413
commit 648931bc99
3 changed files with 29 additions and 0 deletions

View File

@@ -61,6 +61,16 @@
<a-mixin id="wall" geometry wall material="shader: wall-shader; tex: #noiseTexture; env: #envmapWallTexture; repeat: 2 2; transparent: true; side: double">
<a-mixin
id="beatScore"
mixin="font"
text="opacity: 0; wrapCount: 19; color: #AAA"
animation__opacityin="property: components.text.material.uniforms.opacity.value; from: .5; to: 1; dur: 500; startEvents: startanim"
animation__opacityout="property: components.text.material.uniforms.opacity.value; from: 1; to: 0; dur: 500; delay: 700; startEvents: startanim"
animation__motionz="property: object3D.position.z; from: -2; to: -6; dur: 500; easing: easeOutQuart; startEvents: startanim"
animation__motiony="property: object3D.position.y; to: 0.1; dur: 500; easing: easeOutQuart; startEvents: startanim"
></a-mixin>
<a-mixin
id="beatWrong"
geometry="primitive: plane; height: 0.3; width: 0.3"