view tg.sh @ 17:b1a93dc1601d

Makefile rules for normalize and cross product
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Fri, 02 Dec 2005 23:49:15 -0500
parents 43c7ce2fc334
children 72194bf15970
line wrap: on
line source

./render&
sleep 0.5

IPIPE="/tmp/3de.in"
OPIPE="/tmp/3de.out"

while /bin/true; do
	echo "CLEAR" > $IPIPE

	# the 4 walls
	cat tg/walls.scn > $IPIPE

	KEY=`./getline $OPIPE`

	if [ -n "$KEY" ]; then
		case $KEY in
			left)
				echo "got left"
				;;
			right)
				echo "got right"
				;;
			up)
				echo "got up"
				;;
			down)
				echo "got down"
				;;
		esac

	fi

	echo "FLUSH" > $IPIPE
	sleep 0.01
done