menu selected challenge state
This commit is contained in:
@@ -1,42 +1,22 @@
|
||||
<a-entity id="sky"
|
||||
cubemap="folder: /assets/img/env/space/"></a-entity>
|
||||
<a-entity id="sky" cubemap="folder: /assets/img/env/space/"></a-entity>
|
||||
|
||||
<a-entity id="skyFade"
|
||||
bind__visible="menuActive"
|
||||
bind__isPlaying="menuActive"
|
||||
bind__visible="menu.active"
|
||||
bind__isPlaying="menu.active"
|
||||
geometry="primitive: box; width: 50; height: 50; depth: 50"
|
||||
material="shader: flat; color: #111; opacity: 0.6; side: back"></a-entity>
|
||||
|
||||
<a-entity id="tube"
|
||||
geometry="primitive:cylinder;radius:3;height:100;openEnded:true"
|
||||
material="fog: false; depthWrite: false; src:#tubeImg;transparent:true;side:back;repeat:1 5"
|
||||
position="0 1.5 -40"
|
||||
rotation="90 0 0"
|
||||
bind__discotube="speedX: discotube.speedX; speedY: discotube.speedY"></a-entity>
|
||||
|
||||
<a-plane id="floor"
|
||||
width="40"
|
||||
height="40"
|
||||
rotation="-90 0 0"
|
||||
material="src:#gridImg; transparent: true; color: #f9e3fb; repeat: 80 80; depthWrite:false">
|
||||
material="src: #gridImg; transparent: true; color: #f9e3fb; repeat: 80 80; depthWrite: false">
|
||||
<a-plane position="0 0 -0.01"
|
||||
width="2"
|
||||
height="2"
|
||||
material="color: #000; transparent: true; opacity: 0.7"></a-plane>
|
||||
</a-plane>
|
||||
|
||||
<!-- Disco lights -->
|
||||
<a-entity light="type: directional; intensity: 1"
|
||||
position="0 -2 1"
|
||||
discolight="color: #fda6f7; speed: 2.0"
|
||||
bind__visible="discoLightsOn"></a-entity>
|
||||
<a-entity light="type: directional; intensity: 1.6"
|
||||
position="-0 2 .6"
|
||||
discolight="color: #7a9efc; speed: 0.01"
|
||||
bind__visible="discoLightsOn"></a-entity>
|
||||
<!-- Default lights -->
|
||||
<a-entity light="type: ambient; color: #BBB"
|
||||
bind__visible="!discoLightsOn"></a-entity>
|
||||
<a-entity light="type: directional; color: #FFF; intensity: 0.6"
|
||||
position="-0.5 1 1"
|
||||
bind__visible="!discoLightsOn"></a-entity>
|
||||
<a-entity light="type: ambient; color: #BBB"></a-entity>
|
||||
<a-entity light="type: directional; color: #FFF; intensity: 0.6" position="-0.5 1 1"></a-entity>
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
{% macro searchResults () %}
|
||||
<a-entity id="searchResultList"
|
||||
bind-for="for: item; in: searchResults; key: id; template: #searchResultTemplate"
|
||||
layout="type: box; columns: 1; marginRow: 0.125"
|
||||
bind-for="for: item; in: searchResults; key: id; template: #searchResultTemplate">
|
||||
search-result-list>
|
||||
</a-entity>
|
||||
|
||||
{% raw %}
|
||||
<template id="searchResultTemplate">
|
||||
<a-entity class="searchResult" search-result
|
||||
data-id="{{ item.id }}" data-title="{{ item.songName }}"
|
||||
data-preview-start-time="{{ item.previewStartTime }}">
|
||||
<a-entity class="searchResult" data-id="{{ item.id }}">
|
||||
<a-entity class="searchResultSlice"
|
||||
geometry="primitive: plane; width: 0.8; height: 0.1"
|
||||
material="shader: flat; transparent: true; src: #resultImg; color: #BBB"
|
||||
@@ -28,7 +27,7 @@
|
||||
{% endraw %}
|
||||
{% endmacro %}
|
||||
|
||||
<a-entity id="menu" bind__visible="menuActive" position="0 1 -1">
|
||||
<a-entity id="menu" bind__visible="menu.active" position="0 1 -1">
|
||||
<a-entity id="keyboard" super-keyboard="hand: {{ DEBUG_KEYBOARD and '#mouseCursor' or '#rightHand' }}; imagePath: assets/img/keyboard/; injectToRaycasterObjects: false" position="0 0.2 0.02" keyboard-raycastable search></a-entity>
|
||||
|
||||
<a-plane id="play"
|
||||
|
||||
Reference in New Issue
Block a user