Revvin’ Up Your Linux Box! (Cooking with Linux)

By Marcel Gagné

Nothing says high performance like a good race. Got Linux? Got a good accelerated video card as well? Then get yourself these great racing games, get behind the wheel, and drive!

Repeat what you just told me, François. No! Don’t tell me that! Yes, François, I know I told you to repeat what you told me but I was sincerely hoping I was mistaken and that I had heard something entirely different. Something like, “Patron, I lost the key to the filing cabinet,” not “I lost the key to the wine cellar.” In my first restaurant job, François, this would have been considered a firing offense. No, mon ami, I am not going to fire you, but this is terrible! What shall we serve our guests?

Non! I see them walking toward the restaurant now. Quickly, François. Think of something. Why you? Because you locked up the wine cellar minutes before opening time then proceeded to lose the key. That’s why. Quoi? Serve beer from my personal réfrigérateur de bière. That is not a bad idea at all, mon ami. You live to serve another day, non?. Don’t look so hurt, François. We have guests. Quickly!

Ah, welcome, everyone, to Restaurant Chez Marcel, where fine Linux fare is served with the most excellent wines from one of the world’s premier wine cellars. That is, except tonight. It seems my faithful waiter has lost the keys to the wine cellar. Never fear, mes amis, though I love that wondrous liquid fruit of the grape, your Chef also enjoys a good beer, be it lager or ale. And so tonight’s menu will be accompanied by selections from my own réfrigérateur de bière. Please, sit and make yourselves comfortable. François can offer you several excellent selections, all favorites of mine, including Alexander Keiths’ India Pale Ale, Kilkenny Irish Cream Ale, Sleeman’s Original, Unibroue Maudite, and several others.

As you know, mes amis, the current issue’s them is high performance, which we all know can only refer to racing and automobiles. If the words, high performance, and Linux don’t immediately generate the same association in your mind, you should know that in point of fact, Linux and car racing go very well together. The 2007 Indianapolis 500 featured the first ever Linux-sponsored car. The brainchild of Ken Starks, aka helios, the Tux500 project succeeded in its aim to raise enough money to place Tux, the familiar Linux mascot created by Larry Ewing, on the hood of an Indy car.

Figure 1 : The Tux500 Indianapolis race car. Notice the logo on the hood.

In fact, Linux and car racing go very well together. The 2007 Indianapolis 500 featured the first ever Linux-sponsored car. The brainchild of Ken Starks, aka helios, the Tux500 project succeeded in its aim to raise enough money to place Tux, the familiar Linux mascot, on the hood of an Indy car. For more details, visit www.tux500.com.

In honor of this momentous event, the first race game on tonight’s menu, SuperTuxKart, features the very same, Tux, at the wheel. SuperTuxKart, maintained by Joerg Henrichs, is an updated and enhanced version of the original TuxKart, created by Steve Baker. If you’ve played the original, you’ll be impressed by the new, hugely improved, SuperTuxKart. The game features slick new graphics, new tracks, cool characters, racing adventures, and more. You take the controls as one of several characters including Tux, his friend, Penny, Mr. Ice Block, Sushi the Octopus (see Figure 2), Yeti, and others. You can get SuperTuxKart from supertuxkart.berlios.de.

Figure 2 : SuperTuxKart features some colorful characters, many with equally colorful names.

Your next step is to choose whether you want to race on your own (for practice) or whether you want to enter a race with other players. These can be other humans (masquerading as SuperTuxKart characters, of course), or they can be computer AI players. Once your cast is assembled, it’s time to select a race type and course. You can indulge in a Grand Prix event that takes you through all thirteen courses, a handful, or simply go for a single race and select a time trial.

All these packages are available as source code bundles from their respective Websites. Before you start compiling (unless you want to, of course) check your distribution’s software repositories for binary packages. In all cases, I had no trouble finding packages.

Once you are lined up at the starting line, don’t be too hasty putting the pedal to the metal or you’ll be fined penalty points. Once you are off, your car can do some interesting things besides drive. For starters, you can momentarily jump above your competition and any obstacles in your way. Keep moving and collect spinning cubes along the way as these contain things like rockets which you can then fire at opponents and obstacles alike (see Figure 3). Try to pick up the spinning fish coins as well. A penguin’s gotta eat.

Figure 3 : Explosions? They never told me there would be explosions!

The courses in SuperTuxKart are fun, colorful, and imaginative. Race though an undersea lair, through the shifting sands of the Egyptian desert, or around obstables in Oliver’s Math Glass. And don’t worry too much about falling off the edge of the world or an altogether psychedelic cliff. Your jumping/flying car will carry you back to safety using its combination magnetic levitation system and butterfly wings.

I can see that several of you are getting to the end of your beers. Have no fear, there is plenty and you should really try a couple of different ones. François, please take care our guests.

The next item on tonight’s menu is a great racing game called VDrift. Created by Joe Venzon, VDrift is an exciting racing game based on drift racing. The “V” in VDrift refers to the Vamos Automotive Simulator, written by Sam Varner. Vamos is the physics engine that powers the game. Aside from being exciting and great fun to play, VDrift comes with 19 world class tracks and 28 different car models. VDrift is available at vdrift.net.

Figure 4 : On the track with VDrift against a computer player.

In case you didn’t know what drift racing was (your humble Chef, did not), drift racing is a form of racing where the driver employs drifting to control the car. Doesn’t help? Well, how about this quote from Wikipedia? “A car is said to be drifting when the rear slip angle is greater than the front slip angle and the front wheels are pointing in the opposite direction of the turn.. In other words, the car is turning on way, but the wheels are pointing in another direction. This, strange as it may seem, is not an accident. Remember, the driver is in control. What you, as the driver, are doing is sliding into a turn to avoid slowing down as much as possible.

When the game starts, you can select the car you want and, in some cases, the color. Where you race is another option. Choose a race track or go for a relaxing, high speed drive in the country. Practice races put you on the track with no other cars to worry about. Races pit you against an opponent. On a single computer, you can play Vdrift alone or against a computer opponent, at which point, you can also decide on your opponent’s car model and color (see Figure 5). Vdrift can also be run as a server, at which point, your friends can join in for a networked game.

Figure 5 : VDrift lets you select from several different cars, colors, and racing venues.

Several option controls exist to make the game more realistic, and more difficult, if you so choose. For instance, you can decide what effect speed has on steering by adjusting a slider to a desired percentage. The higher the percentage, the more difficult it is at high speeds. You can also choose to map different keys for the gas pedal, the brakes, and the steering. Shifting and clutch controls be defined as well. I confess that I found it much easier to set up for an automatic transmission on my first few races. Which brings up another point; make sure you are in gear before you start. It took me a few tries before I realized that I was going backward. Press s to start, then press 1 to get in gear. If you have selected automatic, shifting will happen automatically for you after this.

There are more options and settings which I’ll let you discover, but I do want to mention on other group of settings that may be important. Given that this an OpenGL game and that it does require hardware 3D acceleration, owners of somewhat less powerful video cards may find the game more responsive by toning down some of the effects.

As you race, you can change your viewing angle by pressing F1 through F5. If you find yourself totally taken with the action on screen and you feel the desire to preserve the moment, you can get a screenshot of the action at anytime by pressing F12. Those images will appear in the folder .vdrift/screenshots in your home directory.

The final item on tonight’s menu is the perfect selection for those of you who experience a kind of mania when it comes to race car driving. The game, aptly named Maniadrive, is an incredibly fast-paced game with rapid turns, nerve-wracking jumps (see Figure 6), and a driving, rocking, soundtrack (Maniadrive is actually a clone of Nadéo Studio’s Trackmania game). Maniadrive features a training mode designed to prepare you for the real thing, a set of complex tracks that can be played locally or online with other players. You can get Maniadrive from maniadrive.raydium.org.

Figure 6 : Yes, it is exactly what it looks like. There is a huge gap in the road. Hammer down, jump, keep it straight, and keep your cool.

When you start Maniadrive, make sure you go through the Beginner story which will guide you through the various moves that are expected of you. When you are ready for the big time, choose the Pro story mode. This game is more an endurance and skill test than a race. Sure, there’s a clock ticking and your speed is tracked (online, against others, no less), but races last only a short time, some less than a minute. If you are the type that gets bored quickly, then Maniadrive is for you.

Speaking of fast,is it possible that time has gone by so quickly? Mon Dieu! And yet, it does appear that closing time is almost upon us. Well, mes amis, despite the apparent crisis that we apparently faced tonight, I dare say that the beer selection was most refreshing. I can tell from your approving nods that you agree with me. Nevertheless, tomorrow, I shall have the wine cellar lock changed and next time, our award-winning cellar will once again be opened. But for now, François will pour you another beer which you may enjoy at your leisure while you enjoy another race. Remember, mes amis, that sitting in front of your Linux systems, driving a virtual car, is the only safe way to drink and drive. Raise your glasses, mes amis, and let us all drink to one another’s health.

A votre santé! Bon appétit!

Note: This column originally appeared in the November 2007 issue of Linux Journal.

Resources

Maniadrive Website

SuperTuxKart Website

VDrift Website

Facebook Comments Box

Leave a Reply

Your email address will not be published. Required fields are marked *