since there are quite a few articles about playing Doom using Chocolate Doom on Arch Linux, but none about Raspbian, I decided I'd write one! First, I have to warn you. Unlike Arch Linux, where you can install this software with the package manager, here we have to compile it, since it doesn't seem to be in the repositories yet.
First off, we need to prepare a folder for the source code. I have a folder called Sources in my home directory where I direct all my source code and compiling related needs. So, let's start by creating one:
Code: Select all
cd ~
mkdir Sources
cd Sources
http://downloads.sourceforge.net/projec ... 7.0.tar.gz
Then unpack it, delete the archive and navigate into the new folder:
Code: Select all
tar -xvf chocolate-doom-1.7.0.tar.gz
rm chocolate-doom-1.7.0.tar.gz
cd chocolate-doom-1.7.0
Code: Select all
sudo apt-get update
sudo apt-get install gcc build-essential libsdl1.2-dev libsdl1.2debian libsdl-image1.2 libsdl-image1.2-dev libsdl-mixer1.2 libsdl-mixer1.2-dev libsdl-net1.2 libsdl-net1.2-dev timidity
Code: Select all
./configure
Finally, we can start compiling. This will take some time but not nearly as long as Q3A.
Code: Select all
make
Code: Select all
sudo make install
To configure Chocolate Doom, you need to run the following command from the terminal:
Code: Select all
chocolate-setup
Now, we need to get the WAD files. A little google search will tell you how to *cough* *cough* extract these files from your original Doom CD. Alternatively, you can use Doom 2, Ultimate Doom, TNT: Eviluion or Plutonia. Log into your Raspberry Pi through SSH as root (for example using WinSCP) and make create a folder called doom in /usr/share and put your doom.wad, doom2.wad, tnt.wad or plutonia.wad. I have tried Strife and Hexen as well, but for some strange reason they don't work for me.
Then you can finally start the game using the terminal with the following command:
Code: Select all
chocolate-doom -iwad /usr/share/(name of your file).wad
OPTIONAL: Create a WAD-specific launcher so you don't have to use the terminal all the time
Open up LeafPad and type the following text in:
Code: Select all
[Desktop Entry]
Name=Doom 1
Exec=chocolate-doom -iwad /usr/share/doom/doom.wad
Icon=chocolate-doom
Type=Application
Comment=Conservative Doom source port. Loaded with a Doom1 WAD.
Categories=Game;ActionGame;
OPTIONAL 2: Create a laucher for multiple kinds of Doom using Zenity
So, let's say you happen to own both Doom 1, Doom 2, and on top of it you also own TNT and Plutonia. And you don't want to have four different icons. Then let us create a launcher with all these options! Using a little inspiration from the ever-popular Python Games, we will make ourselves a nice little menu using Zenity. Open up LeafPad, or, if you have it, Geany and paste the following script there:
Code: Select all
#!/bin/sh
RET=0
GAME=$(zenity --list --width=350 --height=250 --radiolist --title="Choose your game" --column "Select" --column="Game" TRUE "Doom 1/Ultimate Doom" FALSE "Doom 2" FALSE "TNT: Evilution" FALSE "The Plutonia Experiment" )
RET=$?
echo $GAME
if [ "$GAME" = "Doom 1/Ultimate Doom" ]; then
chocolate-doom -iwad /usr/share/doom/doom.wad
elif [ "$GAME" = "Doom 2" ]; then
chocolate-doom -iwad /usr/share/doom/doom2.wad
elif [ "$GAME" = "TNT: Evilution" ]; then
chocolate-doom -iwad /usr/share/doom/tnt.wad
elif [ "$GAME" = "The Plutonia Experiment" ]; then
chocolate-doom -iwad /usr/share/doom/plutonia.wad
else
echo "Cancelled..."
fi
Code: Select all
chmod +x chocolate-doom-launcher
sudo cp chocolate-doom-launcher /usr/bin
Code: Select all
[Desktop Entry]
Name=Chocolate Doom Launcher
Exec=chocolate-doom-launcher
Icon=chocolate-doom
Type=Application
Comment=One launcher for all Doom realted games.
Categories=Game
Code: Select all
cd ~/Desktop
sudo cp chocolate-doom-launcher.desktop /usr/share/applications

Sources of some information used: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=83495 http://www.sparkfun.com/tutorials/372