68 lines
3.3 KiB
HTML
68 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Supersaber</title>
|
|
<script src="vendor/aframe.effects.js"></script>
|
|
<script src="build/build.js"></script>
|
|
</head>
|
|
<body>
|
|
<a-scene
|
|
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
|
|
effect-bloom="strength: 0.7"
|
|
proxy-event="event: menuchallengeselect; to: #searchResultsContainer, #menuDifficulties"
|
|
search
|
|
stage-colors="blue"
|
|
fog="color: #a00; density: 0.035; type: exponential">
|
|
<a-assets timeout="10000">
|
|
<!-- Stage -->
|
|
<a-image id="backglowTexture" src="assets/img/stage/backglow.png"></a-image>
|
|
<a-image id="floor" src="assets/img/stage/floor.png"></a-image>
|
|
<a-image id="skyTexture" src="assets/img/stage/sky.jpg"></a-image>
|
|
<a-image id="smokeTexture" src="assets/img/stage/smoke.png"></a-image>
|
|
<a-asset-item id="backglow-obj" src="assets/models/backglow.obj"></a-asset-item>
|
|
<a-mixin id="laser" laser geometry="height: 300; depth: 0.16; width: 0.16" materials="neon"></a-mixin>
|
|
|
|
<audio id="hoverSound" src="/assets/sounds/hover.ogg"></audio>
|
|
<audio id="introSong" src="/assets/sounds/introSong.ogg" autoplay></audio>
|
|
|
|
<img id="gridImg" src="assets/img/grid.png">
|
|
<img id="playImg" src="assets/img/play.png">
|
|
<img id="sliceImg" src="assets/img/slice.png">
|
|
<a-mixin id="raycaster" raycaster="objects: [raycastable]; far: 2"></a-mixin>
|
|
<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>
|
|
</a-assets>
|
|
|
|
<a-entity id="container">
|
|
{% include './templates/stage.html' %}
|
|
{% include './templates/gameUi.html' %}
|
|
{% include './templates/menu.html' %}
|
|
</a-entity>
|
|
|
|
<a-entity id="cameraRig">
|
|
<a-entity id="camera" position="0 1.6 0.5" camera look-controls wasd-controls></a-entity>
|
|
<a-entity id="leftHand"
|
|
saber-controls="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"
|
|
bind__saber-controls="bladeEnabled: !menu.active"></a-entity>
|
|
<a-entity id="rightHand"
|
|
saber-controls="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"
|
|
bind__saber-controls="bladeEnabled: !menu.active"
|
|
bind__line="visible: menu.active"></a-entity>
|
|
</a-entity>
|
|
|
|
<a-entity id="mouseCursor" mixin="raycaster" cursor="rayOrigin: mouse" debug-cursor
|
|
bind__raycaster="enabled: !inVR" raycaster="far: 20"></a-entity>
|
|
</a-scene>
|
|
</body>
|
|
</html>
|