fixed beats and smoke transparency

This commit is contained in:
Diego F. Goberna
2018-12-05 00:30:59 +01:00
committed by Diego Marcos
parent 28bae66b20
commit 1518bf2e89
2 changed files with 5 additions and 3 deletions

View File

@@ -68,12 +68,14 @@
<a-entity id="mineObjTemplate" obj-model="obj: #mineObj" visible="false"></a-entity>
<a-entity id="cursorLaser" obj-model="obj: #laserObj" visible="false"></a-entity>
{% include './templates/stage.html' %}
<a-entity
id="beatContainer"
bind__pause="isPaused: !isPlaying"
beat-hit-sound></a-entity>
{% include './templates/stage.html' %}
{% include './templates/loading.html' %}
{% include './templates/score.html' %}
{% include './templates/menu.html' %}

View File

@@ -105,9 +105,9 @@
animation__gameover="property: components.material.material.opacity; to: 0; startEvents: gameover"
animation__rotate="property: rotation; to: 0 360 0; easing: linear; loop: true"
obj-model="obj:#smokeObj"
material="src: #atlasImg; fog: false; shader: flat; transparent: true;"></a-mixin>
material="src: #atlasImg; fog: false; shader: flat; transparent: true; depthWrite: false"></a-mixin>
<a-entity id="smoke1" mixin="smoke" position="0 1.4 0" animation__rotate="dur: 200000"></a-entity>
<a-entity id="smoke2" mixin="smoke" position="0 1.8 0" scale="1.25 0.8 1.25" animation__rotate="dur: 243000"></a-entity>
<a-entity id="smoke2" mixin="smoke" position="0 1.8 0" scale="1.09 0.8 1.09" animation__rotate="dur: 243000"></a-entity>
<a-entity light="type: directional; intensity: 3" position="0 10 10"></a-entity>