launcher / handmenu
All checks were successful
/ test (push) Successful in 8s

This commit is contained in:
Leon van Kammen 2025-02-28 16:58:10 +01:00
parent 435ac2fc51
commit 7b28c0ef1b
4 changed files with 25 additions and 46413 deletions

1
make
View file

@ -76,6 +76,7 @@ standalone(){ # build standalone xrsh.com binary
}
dev(){ # start dev http server
set -x
cd "$DIR"
test -f xrsh.com || standalone
test -f /tmp/cert.pem || openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout /tmp/key.pem -out /tmp/cert.pem

46403
src/assets/aframe.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -9,6 +9,11 @@
<script src="com/require.js"></script>
<script src="com/isoterminal.js"></script>
<!-- todo fix lazy initialisation of require.js -->
<script src="com/launcher.js"></script>
<script src="com/helloworld-window.js"></script>
<script src="com/pressable.js"></script>
</head>
<body style="background:linear-gradient( 45deg, #324, #8c74ff)">
@ -18,23 +23,28 @@
renderer="colorManagement: false; stencil: true; antialias:true; highRefreshRate:true; foveationLevel: 0.5;"
xr-mode-ui="XRMode: xr"
obb-collider="showColliders:false"
raycaster="objects: [html]; interval:100;">
raycaster="objects: [html]; interval:100;"
>
<a-entity isoterminal="iso: ./../xrsh.iso; overlayfs: /package.overlayfs.zip; bootMenuURL: 1" position="0 1.6 -0.3"></a-entity>
<a-entity isoterminal="iso: ./../xrsh.iso; overlayfs: /package.overlayfs.zip; bootMenuURL: 1" position="0 1.6 -0.3">
<a-entity launcher pressable grabbable position="0 -0.315 0"></a-entity>
</a-entity>
<a-entity id="player" >
<a-entity camera="fov:90" position="0 1.6 0" id="camera" wasd-controls com="uri: com/control/gaze-touch-to-click.js"></a-entity>
<a-entity id="left-hand" hand-tracking-grab-controls="hand: left; modelColor: #cccccc; hoverEnabled:true" laser-controls="hand: left" raycaster="objects:.ray,[html]" blink-controls="cameraRig:#player; teleportOrigin: #camera; collisionEntities: #floor">
<a-entity rotation="-35 0 0" position="0 0.1 0" id="navigator">
<a-entity id="back" xrf-button="label: <; width:0.05; action: history.back()" position="-0.025 0 0" class="ray"></a-entity>
<a-entity id="next" xrf-button="label: >; width:0.05; action: history.forward()" position=" 0.025 0 0" class="ray"></a-entity>
</a-entity>
<a-entity helloworld-window pressable position="0 1.6 0"></a-entity>
<a-entity id="player">
<a-entity camera="fov:90" position="0 1.6 0" id="camera" wasd-controls gaze-touch-to-click></a-entity>
<a-entity id="left-hand" hand-tracking-grab-controls="hand: left; modelColor: #EEEEEE; hoverEnabled:true"
laser-controls="hand: left"
raycaster="far:0.04"
blink-controls="cameraRig:#player; teleportOrigin: #camera; collisionEntities: #floor"
>
</a-entity>
<a-entity id="right-hand" hand-tracking-grab-controls="hand: right; modelColor: #EEEEEE; hoverEnabled:true"
laser-controls="hand: right"
raycaster="objects:.ray,[html]"
raycaster="far:0.04"
blink-controls="cameraRig:#player; teleportOrigin: #camera; collisionEntities: #floor"
com="uri: com/control/pinch-to-teleport.js; rig: #player"></a-entity>
____pinch-to-teleport="rig: #player"></a-entity>
</a-entity>
</a-scene>

@ -1 +1 @@
Subproject commit 46bb9afe6dc9a9de2a34f6923bdb448942af0c31
Subproject commit 987828b233e2d743a974fcce3ba4f292d8e5940e