Enjoying games with Linux
Leslie P. Polzer
http://viridian.dnsalias.net/~sky/homepage/

<p>Playing computer games can be a very relaxing and fun experience, especially after a hard day at work. Does this mean shutting down your Linux and booting straight into Microsoft Windows?  Not at all! You can play plenty of games in the Linux environment.</p>

<p><strong>Wine and Cedega</strong></p>

<p>You can try running your favorite games that were designed for Microsoft Windows with <a href="http://www.winehq.org/">Wine</a>, a set of libraries and helper programs that translate Windows API calls to Linux system and library calls. This actually works pretty well for many games -- check the Wine <a href="http://appdb.winehq.org/">application database</a> for evaluations and hints on how to get your game of choice working. In 2D games, for example <a href="http://www.microsoft.com/games/age2/">Age Of Empires II</a>, you might experience a heavy speed penalty due to the still outstanding <a href="http://wiki.winehq.org/DIBEngine">DIB engine</a>.</p>

<p>If Wine doesn't do the job, you might try <a href="http://www.cedega.com">Cedega</a>, a subscriber-based version of Wine with lots of additions and a focus on gaming. Cedega also has a <a href="http://games.cedega.com/gamesdb/">database of games</a> where you can check how well your favorite games work so you don't have to buy a pig in a poke.

<p>Adventurous gamers may also try <a href="http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS">compiling Cedega from source</a>: their <a href="http://cedega.com/cvs/">CVS repository</a> is public, although a bit of special functionality (like copy protection support) is missing. Transgaming, the company behind Cedega, has a regular release schedule and tries hard to keep the most popular games running.</p>

<p><a href="http://www.codeweavers.com/">Codeweavers</a>, best known for selling <a href="http://www.codeweavers.com/products/cxoffice/">"Crossover Linux"</a> (formerly "Crossover Office"), an enhanced WINE version with a focus on productivity applications, has also recently decided to <a href="http://applications.linux.com/article.pl?sid=07/01/23/1735243&tid=13">get more active in the field of gaming</a>; like Transgaming, they naturally put most effort into popular games like World of Warcraft, but they have a history of working closely with the WINE project and contributing all of their work back. Transgaming, on the other hand, does so only in part.</p>


<p><strong>Commercial and non-free games</strong></p>

<p>And yes, some commercial vendors actually offer Linux binaries for their games. <a href="http://www.lokigames.com/">Loki Games</a>, authors of the <a href="http://www.libsdl.org">Simple DirectMedia Layer</a>, used to port a lot of games to Linux, but they have been out of business for six years.</p>

<p>Nowadays you can buy games directly from <a href="www.tuxgames.com/">Tux Games</a>, or look out for games that offer Linux binaries for download. <a href="http://www.idsoftware.com/">id Software</a>, creators of classics like the Doom and Quake series, are well-known for their games' Linux support. The popular <a href="http://nwn.bioware.com/">Neverwinter Nights</a> series also come with Linux installers. Another big vendor is <a href="http://www.epicgames.com/">Epic Games</a>, creator of the <a href="http://unrealtournament.com/">Unreal Tournament</a> series of First Person Shooters, who releases well engineered GNU/Linux binaries with its products.</p>

<p>Since the games industry is not everyone's favorite source of commercial games, there's<a href="http://www.frictionalgames.com/"></a> <a href="http://www.manifestogames.com/linuxgames"></a> <a href="http://www.onlamp.com/pub/a/onlamp/2002/12/23/indiegames.html">more information about independent games</a>.</p>

<!-- glest.jpg 
Cutline: The dragon horde attacks in <a href="http://www.glest.org/">Glest</a> -->

<p><strong>Free games</strong></p>

<p>Most commercial games are not free software. For those of us that want to enjoy the <a href="http://www.germany.fsfeurope.org/documents/freesoftware.en.html">four freedoms</a> when playing games, a huge number of games in a multitude of genres are available.</p>

<p>You can start browsing them at general software development sites like <a href="http://www.sf.net/">Sourceforge</a> or specialized Web sites like the ones mentioned in the next section of this article. Using the latter ones has the advantage that they often have reviews, offer user-contributed commenting functionality and let you immediately look at a screen shot.</p>

<p>To see examples of high quality games from different genres, take a look at the <a href="http://en.wikipedia.org/wiki/Breakout">Breakout</a> clone <a href="http://lgames.sourceforge.net/index.php?project=LBreakout2">LBreakout2</a>, the first person shooter <a href="http://wouter.fov120.com/cube/index.php4">Cube</a>, the turn-based strategy game <a href="http://www.wesnoth.org/">Battle for Wesnoth</a> and the card game collection <a href="http://live.gnome.org/Aisleriot">Aisleriot</a>. Air plane enthusiasts definitely need to check out <a href="http://www.flightgear.org/">FlightGear</a>, an advanced flight simulator with a host of scenery, map and aircraft add-ons. In case you'd rather stay firmly on the ground, you might want to try the 3D racing simulator <a href="http://torcs.sourceforge.net/">torcs</a> which is FlightGear's ground-based counterpart in terms of quality.</p>

<p>Of course, you might already have installed a bunch of games without knowing!  Gnome and KDE both come with collections of excellent games, with a focus on the Arcade and Puzzle genres. The aforementioned Aisleriot, for example, is part of the <a href="http://www.gnome.org/projects/gnome-games/">Gnome Games</a> package. Another example, this time from the <a href="http://games.kde.org/">KDE games collection</a> is the innovative <a href="http://www.azweb.de/kspaceduel/">KSpaceDuel</a> that challenges you with simulated gravity.</p>


<p><strong>Emulators and engines</strong></p>

<p>You can also use emulators to revive the games of the past. Most systems have at least one mature emulator for them, among them real classics like the <a href="http://www.viceteam.org/">Commodore C64</a>, the <a href="http://www.zsnes.com/">Super Nintendo Entertainment System (SNES)</a>, the <a href="http://www.rcdrummond.net/uae/">Commodore Amiga</a> and the <a href="http://www.pknet.com/~joe/dgen-sdl.html">Sega Mega Drive</a>, also known as <em>Sega Genesis</em>. Arcade cabinets are taken care of by the <a href="http://x.mame.net/">xmame</a> system.</p>

<p>But not only hardware is emulated. Great efforts are underway to use the data files of games by reverse engineering their format and writing new engines for them. A very successful project in this category is <a href="http://www.scummvm.org/">ScummVM</a>, an adventure game interpreter with focus on Lucas Arts adventures -- classics like <a href="http://www.worldofmi.com/">Monkey Island</a> or <a href="http://members.fortunecity.com/harang/">Maniac Mansion</a>.</p>

<!-- eos-dawn-of-light.png
Cutline: A promising scene from <a href="http://www.pygame.org/projects/20/392/">Eos: Dawn Of Light</a> -->

<p><strong>Staying informed</strong></p>

<p>Over the course of the last decade, Linux gaming content has clustered significantly around some central Web sites, the most popular of which are probably <a href="http://www.linux-gamers.net/">Linux Gamers</a>, <a href="http://www.linuxgames.com/">Linux Games</a>, and the <a href="http://happypenguin.org/">Linux Game Tome</a>.</p>

<p>They all help you to find games you might like, keep you up to date on the latest versions, and share your experiences with other players. The <a href="http://icculus.org/lgfaq/">Linux Gamers' FAQ</a> has a lot of useful information as well. Another comprehensive resource linked from this FAQ document is the <a href="http://icculus.org/lgfaq/gamelist.php">Linux Gamer's Game List</a>.</p>

<p>If your graphics adapter isn't strong enough for the games you'd like to play, you don't have much choice in getting a new one: until the Open Graphics Card is available (see next section for more information on this), your only pragmatic options are cards from <a href="http://www.nvidia.com/">Nvidia</a> or <a href="http://ati.amd.com/">ATI</a>. Both require you to use non-free, binary-only drivers to exploit all of the card's functionality. Free software alternatives are faced with the difficulty of writing drivers for hardware without specifications;  not an easy undertaking. They thus offer only a comparably small subset of their non-free counterparts' functionality or are still in their infant stages, like the <a href="http://nouveau.freedesktop.org/">Nouveau project</a> that aims to write a free Nvidia driver with full 3D support. I don't know how well ATI packages their drivers nowadays, but about two years ago it was pure hell trying to get ATI cards to work, compar
 ed to the Nvidia driver -- especially on distributions that did not use the RPM utility for package management. My best advice back then would have been "buy an Nvidia" card, but nowadays ATI's drivers seem to have improved a lot and I'm tempted to try an ATI card as my next graphics card. Of course, only if the Open Graphics Card won't be available at this time!</p>


<p><strong>What's next?</strong></p>

<p>Gaming is not only fun, it's something with huge economical and social impact as well. If Linux wants to gain acceptance in the desktop segment, it has to attract the game-playing audience and their developers. Projects like <a href="http://www.planeshift.it">Planeshift</a>, an <a href="http://en.wikipedia.org/wiki/MMORPG">MMORPG</a> show what the free software and content community is capable of, and a host of high-quality tools helps them in all stages of development.</p>

<p>For example, graphics artists have <a href="http://www.blender.org/">Blender</a> and the all-famous <a href="http://www.gimp.org/">Gimp</a>. Programmers can use the power of advanced 3D engines like <a href="http://www.crystalspace3d.org/">Crystal Space</a> and <a href="http://www.ogre3d.org/">Ogre</a>, as well as 2D real-time strategy engines like <a href="http://www.stratagus.org/">Stratagus</a>.</p>

<p>Sound creators will hardly miss anything with the readily available professional-grade <a href="http://linux-sound.org/">Linux sound applications</a>. The community in all likelihood gets their <a href="http://wiki.duskglow.com/tiki-index.php?page=Open-Graphics">own graphics board</a> soon! With all these assets, it is only a matter of time, effort and determination until Linux gaming has fully caught up with the competition.</p>

<p>As <a href="http://icculus.org/~icculus/">Ryan Gordon</a> from <a href="http://icculus.org/">icculus</a> put it in a <a href="http://www.linuxgames.com/?dataloc=articles/icculus/">recent interview</a>, "I guess you're asking what Linux gaming will look like in five years and, in a roundabout way, I'm answering: whatever we make it look like."</p>

<p><em>Leslie P. Polzer is a free software consultant and an experienced pastime gamer.</em></p>