Files
junisaber/src/index.html

53 lines
2.5 KiB
HTML
Raw Normal View History

2018-07-18 20:48:45 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Supersaber</title>
2018-09-12 11:35:20 -07:00
<script src="vendor/aframe.effects.js"></script>
2018-07-18 20:48:45 +02:00
<script src="build/build.js"></script>
</head>
<body>
2018-09-12 11:35:20 -07:00
<a-scene
effect-bloom="strength: 0.7"
bind__beat-loader="challengeId: challenge.id; difficulty: challenge.difficulty"
bind__song="challengeId: challenge.id; isPlaying: !menu.active && !challenge.isLoading"
bind__song-preview-system="selectedChallengeId: menuSelectedChallenge.id"
console-shortcuts
proxy-event="event: menuchallengeselect; to: #searchResultsContainer, #menuDifficulties"
search>
2018-07-18 20:48:45 +02:00
<a-assets timeout="10000">
2018-07-21 10:21:30 +02:00
<audio id="hoverSound" src="/assets/sounds/hover.ogg"></audio>
<img id="gridImg" src="assets/img/grid.png">
2018-07-18 20:48:45 +02:00
<img id="playImg" src="assets/img/play.png">
<img id="sliceImg" src="assets/img/slice.png">
2018-07-21 10:21:30 +02:00
<a-mixin id="raycaster" raycaster="objects: [raycastable]; far: 2"></a-mixin>
2018-08-13 21:13:23 -07:00
<a-mixin id="slice" slice9="color: #050505; transparent: true; opacity: 0.7; src: #sliceImg; left: 50; right: 52; top: 50; bottom: 52; padding: 0.18"></a-mixin>
<a-mixin id="font" text="font: assets/fonts/Teko-Bold.json; shader: msdf; letterSpacing: 1"></a-mixin>
<a-mixin id="textFont" text="font: assets/fonts/Teko-Bold.json; shader: msdf; letterSpacing: 1"></a-mixin>
2018-07-18 20:48:45 +02:00
</a-assets>
2018-08-13 21:13:23 -07:00
<a-entity id="container" bind__recenter="enabled: menu.active" recenter="target: #menu">
2018-07-18 20:48:45 +02:00
{% include './templates/environment.html' %}
{% include './templates/gameUi.html' %}
{% include './templates/menu.html' %}
</a-entity>
<a-entity id="cameraRig">
2018-09-12 11:35:20 -07:00
<a-entity id="camera" position="0 1.6 0.5" camera look-controls></a-entity>
2018-08-13 21:13:23 -07:00
<a-entity id="leftHand"
controller="hand: left"
proxy-event__pause="event: menudown; to: a-scene; as: pause"
proxy-event__pauserifta="event: abuttondown; to: a-scene; as: pause"
proxy-event__pauseriftb="event: bbuttondown; to: a-scene; as: pause"></a-entity>
<a-entity id="rightHand"
controller="hand: right"
proxy-event__pause="event: menudown; to: a-scene; as: pause"
proxy-event__pauseriftx="event: xbuttondown; to: a-scene; as: pause"
proxy-event__pauserifty="event: ybuttondown; to: a-scene; as: pause"></a-entity>
2018-07-18 20:48:45 +02:00
</a-entity>
2018-07-21 10:21:30 +02:00
<a-entity id="mouseCursor" mixin="raycaster" cursor="rayOrigin: mouse" debug-cursor
2018-08-24 12:56:39 -07:00
bind__raycaster="enabled: !inVR" raycaster="far: 20"></a-entity>
2018-07-18 20:48:45 +02:00
</a-scene>
</body>
</html>