summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/dungen/dunexplore.sh
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2022-08-17 21:34:02 -0500
committerepoch <epoch@thebackupbox.net>2022-08-17 21:34:02 -0500
commit6492ba6b4107a4da228e18db4fc5fc871bfb0579 (patch)
tree11301c4e20d9a1448337e73b62a16ab1bfeba457 /share/hackvr/examples/dungen/dunexplore.sh
parent49d54d7582bdcbdcff5637e72e9f29bb5cc571bd (diff)
downloadhackvr-6492ba6b4107a4da228e18db4fc5fc871bfb0579.tar.gz
hackvr-6492ba6b4107a4da228e18db4fc5fc871bfb0579.zip
updated README to show that everything that got deleted went to an -extras repo. also, hackvr script updated to be better bashHEADmaster
Diffstat (limited to 'share/hackvr/examples/dungen/dunexplore.sh')
-rwxr-xr-xshare/hackvr/examples/dungen/dunexplore.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/share/hackvr/examples/dungen/dunexplore.sh b/share/hackvr/examples/dungen/dunexplore.sh
deleted file mode 100755
index 6fbd5c3..0000000
--- a/share/hackvr/examples/dungen/dunexplore.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-### run me with hackvr_coproc
-#the $USER triangle we add first is to give us some sort of avatar to see where the camera is.
-#seed=1337
-red=1
-green=2
-blue=4
-echo $USER addshape 6 3 -1 0 -1 0 0 2 1 0 -1 ; echo $USER move 0 2 0
-echo world-x addshape $red 2 0 0 0 1 0 0
-echo world-y addshape $green 2 0 0 0 0 1 0
-echo world-z addshape $blue 2 0 0 0 0 0 1
-./dungen $seed | ./dun2hackvr
-while read group action target;do
- if [ "$action" = "action" ];then
- if printf "%s\n" "${target}" | grep ^door_;then
- printf "# clicked a door! %s\n" "${target}" >&2
- if printf "%s\n" "${target}" | grep ^door_open;then
- tmp=$(printf "%s\n" "${target}" | sed 's/_open/_CLOSING/')
- printf "%s renamegroup %s %s\n" ${target} ${target} ${tmp}
- (
- for i in $(seq 1 5 90);do
- printf "%s rotate 0 +5 0\n" ${tmp}
- sleep .1
- done
- tmp2=$(printf "%s\n" "${target}" | sed 's/_open/_close/')
- printf "%s renamegroup %s %s\n" ${tmp} ${tmp} ${tmp2}
- ) &
- elif printf "%s\n" "${target}" | grep ^door_close;then
- tmp=$(printf "%s\n" "${target}" | sed 's/_close/_OPENING/')
- printf "%s renamegroup %s %s\n" ${target} ${target} ${tmp}
- (
- for i in $(seq 1 5 90);do
- printf "%s rotate 0 +-5 0\n" ${tmp}
- sleep .1
- done
- tmp2=$(printf "%s\n" "${target}" | sed 's/_close/_open/')
- printf "%s renamegroup %s %s\n" ${tmp} ${tmp} ${tmp2}
- ) &
- fi
- fi
- fi
-done