summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
committerepoch <epoch@hacking.allowed.org>2018-03-29 19:48:58 -0500
commit9e49dcb25e7ccea65948adb07be6206f867b79f5 (patch)
treefffcb9db8d1aa001696dccfdbee0fe75f14c3c5e
parentbd406f6b15bc13861d235615fac3c7cbfee31a76 (diff)
downloadhackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.tar.gz
hackvr-9e49dcb25e7ccea65948adb07be6206f867b79f5.zip
moved tictactoe and made the reset button not move user back to default position
-rw-r--r--examples/tictactoe/board (renamed from tictactoe/board)5
-rw-r--r--examples/tictactoe/camera.pos5
-rwxr-xr-xexamples/tictactoe/game.sh (renamed from tictactoe/game.sh)3
-rwxr-xr-xexamples/tictactoe/listen.sh (renamed from tictactoe/listen.sh)0
-rw-r--r--examples/tictactoe/marker0 (renamed from tictactoe/marker0)0
-rw-r--r--examples/tictactoe/marker1 (renamed from tictactoe/marker1)0
-rwxr-xr-xexamples/tictactoe/run (renamed from tictactoe/run)0
7 files changed, 7 insertions, 6 deletions
diff --git a/tictactoe/board b/examples/tictactoe/board
index d4b8f56..2d8a0e5 100644
--- a/tictactoe/board
+++ b/examples/tictactoe/board
@@ -1,8 +1,3 @@
-junk set global.zoom 64
-junk set camera.p.z -7
-junk set camera.p.y -1
-junk set camera.p.x 0
-
_reset addshape 2 3 -4 -4 4 -5 -4 4 -4 -5 4
topleft addshape 2 4 -3 3 4 -1 3 4 -1 1 4 -3 1 4
diff --git a/examples/tictactoe/camera.pos b/examples/tictactoe/camera.pos
new file mode 100644
index 0000000..0dc5404
--- /dev/null
+++ b/examples/tictactoe/camera.pos
@@ -0,0 +1,5 @@
+junk set global.zoom 64
+junk set camera.p.z -7
+junk set camera.p.y -1
+junk set camera.p.x 0
+
diff --git a/tictactoe/game.sh b/examples/tictactoe/game.sh
index 1d3737c..e10b452 100755
--- a/tictactoe/game.sh
+++ b/examples/tictactoe/game.sh
@@ -1,6 +1,7 @@
#!/bin/bash
turn=$( expr $RANDOM % 2)
-echo "go. player: $turn"
+cat camera.pos
+echo "go. player: $turn" >&2
stdbuf -oL uniq \
| grep --line-buffered action \
| stdbuf -oL cut '-d ' -f1,3 | while read user group;do
diff --git a/tictactoe/listen.sh b/examples/tictactoe/listen.sh
index 0318cd2..0318cd2 100755
--- a/tictactoe/listen.sh
+++ b/examples/tictactoe/listen.sh
diff --git a/tictactoe/marker0 b/examples/tictactoe/marker0
index 5bc0c5c..5bc0c5c 100644
--- a/tictactoe/marker0
+++ b/examples/tictactoe/marker0
diff --git a/tictactoe/marker1 b/examples/tictactoe/marker1
index e7aa5a7..e7aa5a7 100644
--- a/tictactoe/marker1
+++ b/examples/tictactoe/marker1
diff --git a/tictactoe/run b/examples/tictactoe/run
index 8dddc99..8dddc99 100755
--- a/tictactoe/run
+++ b/examples/tictactoe/run