summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/wordsearch
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/wordsearch
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/wordsearch')
-rwxr-xr-xshare/hackvr/examples/wordsearch/game.sh37
-rwxr-xr-xshare/hackvr/examples/wordsearch/run8
2 files changed, 0 insertions, 45 deletions
diff --git a/share/hackvr/examples/wordsearch/game.sh b/share/hackvr/examples/wordsearch/game.sh
deleted file mode 100755
index 3c30be1..0000000
--- a/share/hackvr/examples/wordsearch/game.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env bash
-## you might want to edit these to suit your tastes.
-width=10
-height=$width
-words_per_puzzle=$[width]
-x=$[-10 * $width / 2]
-y=$[10 * $width / 2]
-z=0
-clicked=""
-wordlist=/usr/share/dict/words
-echo derp
-wordsearch -w <(shuf $wordlist 2>/dev/null | grep '^.\{1,'"$width"'\}$' 2>/dev/null | head -n $words_per_puzzle | tee /dev/stderr) --columns $width --rows $height --text | tail -n+4 | head -n $height | while read -r line;do
- echo "$line" | tr -d ' ' | fold -w 1 | while read letter;do
- name="_${x}_${y}"
- printf "%s addshape 2 4 %s %s %s %s %s %s %s %s %s %s %s %s\n" \
- "$name" \
- $[$x-2] $[$y-3] $z \
- $[$x+8] $[$y-3] $z \
- $[$x+8] $[$y+7] $z \
- $[$x-2] $[$y+7] $z
- echo $letter | makelabel.sh "$name" $x $y $z
- x=$[$x+10]
- done
- y=$[$y-10]
-done
-while read group action args;do
- if [ $action = action ];then
- if grep "$args" <<< "$clicked" 2>&1 >/dev/null;then
- clicked=$(grep -v '^'"$args"'$' <<< "$clicked")
- printf "%s move 0 0 0\n" "$args"
- else
- clicked="$clicked"$'\n'"$args"
- printf "%s move 0 0 -5\n" "$args"
- fi
-# xmessage -nearmouse "$args"
- fi
-done
diff --git a/share/hackvr/examples/wordsearch/run b/share/hackvr/examples/wordsearch/run
deleted file mode 100755
index 48d107c..0000000
--- a/share/hackvr/examples/wordsearch/run
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-# just need to get some way for these to coproc
-if ! which wordsearch >/dev/null;then
- echo "we need wordsearch installed to generate the puzzle"
- echo "please read: https://github.com/jamis/wordsearch"
- exit 1
-fi
-socat exec:hackvr exec:./game.sh