Sunday, September 10, 2006

Pipe Panic!

I came across Pipe Panic for the Nokia 770, and I really like it. It's a pipe connecting game: the goal is to connect pipes to create a leak-proof path from a water source to its destination.

Requirements. Install the libSDL libraries with apt-get.
apt-get install libsdl1.2-dev
Installation. Download the sourcecode from the Pipe Panic website.

Extract and compile the package.
tar -xzvf pipepanic-0.1.3-source.tar.gz
cd pipepanic
make
(For the last step above you need to have the build tools installed. See my earlier post on post-installation setup.)

Test it.
./pipepanic -f
Install system wide.
mv pipepanic pipepanic.bin
Create a file called pipepanic containing the following three lines.
#!/bin/bash
cd /usr/local/pipepanic-0.1.3
exec ./pipepanic.bin -f
Copy the pipepanic directory into /usr/local.
cd ..
mv pipepanic-0.1.3-source /usr/local/pipepanic-0.1.3
Create symbolic links
cd /usr/local/bin
ln -s ../pipepanic-0.1.3/pipepanic .
Add a menu entry. To add an entry to the Xfce menu, create a file called /usr/share/applications/pipepanic.desktop containing the following.
[Desktop Entry]
Encoding=UTF-8
Name=Pipe Panic
Comment=Connect the Pipes!
Exec=pipepanic
Icon=
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Application;Game;ArcadeGame;