Specifications

Library. Once you’ve installed those,
head to the Tetuhi Web site and grab
either the latest tarball or the latest
code from the GIT repository.
Once you have either of those,
extract it (if you have the tarball), and
look at the directories c, img-c and
perceptron. Open a terminal, and enter
each one of these directories and run
the commands:
$ make
and, as root or sudo:
# make python-install
This should work in all three direc-
tories without errors. If not, make
sure you have all of the previously
mentioned libraries installed and up
to date.
Usage Now that the compiling
is out of the way, head back to the
main tetuhi directory, and enter
the command:
$ ./tetuhi nameofimagehere.jpg
If everything has compiled properly,
an image with some crazy instructions
should appear on screen, walking you
through the first steps of the game. The
best types of images to use are those
with simplicity, such as stark back-
grounds with bold elements at the fore-
front. Included on the Tetuhi Web page
is a link to a tarball containing sample
images for testing. My favorite is
“hills-cars.jpg”, whose line of land,
trees and a car pulses and gyrates,
while you control a wiggling sun—
making for the trippiest game experi-
ence I’ve had in some time. Once you’ve
enjoyed the first few plays, you may
want to make a symlink to a pathed
directory so that you don’t have to keep
entering Tetuhi’s source directory.
Although the games themselves
are rather simplistic (and lame in most
cases), it’s the implications of the
image manipulation that are of real
interest here. I can see parts of the
code foundation making it into much
larger-scale projects in the gaming
and multimedia area in the future.
Tetuhi’s creator, Douglas Bagnall, is
making particular efforts so that
Tetuhi can be included on the One
Laptop Per Child XO laptop, so it’ll be
interesting to see what kind of games
and drawings children around the
world will come up with to play in
connection with Tetuhi’s game rules.
Check out some of Douglas’ other
crazy projects at halo.gen.nz.
I
John Knight is a 23-year-old, drumming- and climbing-
obsessed maniac from the world’s most isolated city—Perth,
Western Australia. He can usually be found either buried in an
Audacity screen or thrashing a kick-drum beyond recognition.
40 |
august 2008 www.linuxjournal.com
NEW PROJECTS
I realise this crayon drawing itself doesn’t show off Tetuhi’s capabilities, but imagine that the hills
and trees are pulsating in front of you and you are driving the sun....No, I’m not on mushrooms!
Projects
at a Glance
joyevmouse
(
welz.org.za/projects/joyevmouse
)
joyevmouse is a joystick-to-
mouse mapper that converts
joystick events to mouse events.
Of course, this means that lazy
people like myself who watch
endless episodes of anime and
Top Gear won’t have to get
off the couch. Conveniently,
joyevmouse also runs entirely
in user space. It does not run as
a kernel driver nor does it need
a patch. Extra documentation
and users are lacking at this
point, so check it out and see
if it suits your needs.
The Stump Window Manager
(Stumpwm,
www.nongnu.org/
stumpwm
)
Stumpwm is a keyboard-driven,
minimalist X11 window manager
written in Common Lisp. Despite
its visually minimalist approach
(there are no window decora-
tions, icons or even buttons),
Stumpwm is designed to be fully
customizable and very powerful.
And, judging by its main feature,
I’d say it is so, because Stumpwm
is designed to be hackable while
the actual program is running.
The ultimate control freak will
love this, and any Lisp fans also
should to take a gander.
Brewing something fresh, innovative or mind-bending? Send e-mail to knight.john.a@gmail.com.