view tg.sh @ 20:ebc55ce699ec

Rotate the other way around: z, y, x - more useful to us
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Sat, 03 Dec 2005 00:35:58 -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