WolfGL, Wolfenstein and Spear of Destiny port to the Linux platforms using OpenGL

WolfGL is a famous DOS game from 1992 created by id Software. This is an attempt to port the source (released in 1995) to Linux.

Some time ago ID Software released the source code for their old Wolfenstein game, it was the first FPS game I can remember, with very cool graphics at the time it was released but not very nice for today's standards.

I don't know the reason why nobody had any interest in it, I've seen several ports of Hexen, Heretic and Doom but nobody did a Wolfenstein port. Maybe that's because the code was very complicated and required a lot of changes:


· It was a 16 bit program and most pointers were just unsigned shorts.
· There are several assembler routines.
· Drawing the 2D graphics is very complicated because of the VGA planes.
· Memory management is more complicated than it needs to be now.


The developer of WolfGL, a port of id Software's classic Wolfenstein 3D, thinks not. In short, no one else seemed willing to do it -- probably, he theorizes, because the source code released by id was significantly more complicated to work with than Doom's -- so he did it.

Fans who miss roaming the halls of Castle Wolfenstein, blasting Nazis and groping every brick for secret passages that led to golden crosses, treasure chests overflowing with coins, and the massive chaingun owe it to nostalgia to download WolfGL.

Like the protagonist of a sappy Disney movie, WolfGL asks that you love it for what it is: Wolfenstein 3D with a slightly brighter coat of paint. Go in with these expectations, and you'll have a great time.

So I decided to take some time and work on a simple conversion, it only took me about 1 week to be able to play the game plus another week just to fix the menus and a few other details. I guess that the best way to describe it would be to call it a 'hack', it still has a lot of unneccessary code and the rendering loop is almost not optimized but I can get 70 fps at 800x600 with my P2 and Riva TNT system.

My goal while doing the conversion was to keep the game as close to the original as possible, I know how to add lightmaps and other nice effects but that's not what I wanted to do. The only improvements to the code was the ability to play more than 1 digital sound effect at the same time and I changed the savegame file format. I've also decided to use OpenGL for the graphics so you'll get a bilinear filtering for the walls, and the sprites will look a little better with the increased resolution.

While the core of the 3D rendering code was done in assembler, you can get most of the information you need to know (like the location of the walls and which textures to use) from the C parts. As the game map is divided in areas connected by doors, I wrote a simple loop to draw all areas that are connected to where the player is.

The game already keeps track of that information, so I could easily know what needs to be drawn each frame and ended up with a very low triangle count per frame.


Screenshots:




Get Chitika | Premium

If you liked this article, subscribe to the feed by clickingthe image below to keep informed about new contents of the blog:

Share on Google Plus

About Giampaolo Rossi.

Fond of computer and video games. Stay informed of the latest news on games for Linux and Android. The future of gaming is in Linux. All you need to know about How to play Windows games on Linux.
    Blogger Comment
    Facebook Comment

0 commenti:

Post a Comment

Random Posts

  • Monsters Band: free educational games for kids, toddlers & children.
    09.09.2014 - 0 Comments
    The best kids’ app according to Appsmama.com. Your children will have great fun and develop their skills while playing the MemoryMonsters game, doing the Puzzle or answering the fun questions in our Quiz. …
  • PrBoom is a version of the classic fps game Doom.
    24.07.2010 - 0 Comments
    PrBoom is a version of the classic fps game Doom by id Software. Specifically, it's an engine for playing Doom levels, based on the source code released by id Software. It aims to be free, reliable, portable,…
  • 100 Best Free and High Quality Linux Games, Chapter 4.
    29.04.2012 - Comments Disabled
    31. Speed Dreams Speed Dreams is a fork of the famous open racing car simulator TORCS, aiming to implement exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the…
  • The Last Sorceror is a fast-action game where you are the leader of a powerful Order of Sorcerors.
    29.04.2013 - Comments Disabled
    The Last Sorceror is a fast-action game where you are the leader of a powerful Order of Sorcerors.  Having defeated mankind's greatest enemy, the Demon Hordes, you retreat to Haven for a life of peaceful…
  • 0 A.D. Guide: grouping of civilizations and features in the new version.
    26.09.2024 - 2 Comments
    The first edition of 0 A.D. will allow the player to control any of twelve ancient civilizations from the pre-common era. Each culture will be represented at the peak of its civilization, somewhere along the…
  • GNOME Games is a collection of sixteen small
    05.07.2009 - 0 Comments
    GNOME Games is a collection of sixteen small "five-minute" games in a variety of styles and genres for the GNOME desktop. Here you can find useful information about playing the games, and can contribute…
  • 0 A.D. Guide, Chapter IV: Dynamic Territories, Technologies and Phases.
    12.01.2022 - 0 Comments
     0 A.D. features the traditional real-time strategy gameplay components of building a base, developing an economy, training an army, engaging in combat, and researching new technologies.The game includes…
  • In Windstille the player will be placed in a foreign alien world and has to find its way back into safety.
    01.12.2012 - Comments Disabled
    Windstille is going to become an old-school 2D site-scrolling shoot'em up game, similar to Turrican or Metroid (with probally some influence of Another World and Flashback). The game will use OpenGL for fast…
  • Top 10 blog posts for November 2013 from Linux & The Planet Games.
    13.12.2013 - 0 Comments
    1.- Playing is believing. Triple Town Triple Town is an original puzzle game in which you try to grow the greatest possible city. The larger the city you build, the more points you score. …
  • Dungeons of Dredmor is a graphical roguelike game created by Gaslamp Games.
    09.03.2014 - 0 Comments
    Dungeons of Dredmor is a roguelike indie game released on July 13, 2011 by Gaslamp Games. The game features tile-based graphics. A DLC release for the game entitled "Realm of the Diggle Gods" was…