Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone with no article paywalls. Just good, fresh content! Alternatively, you can donate through PayPal, Liberapay or Buy us a Coffee. You can also buy games using our partner links for GOG and Humble Store.

Building a Retro Linux Gaming Computer - Part 15: Square Cubed

By - | Views: 9,841

Continued from Part 14: Return to Na Pali

John Carmack's generosity in releasing his older source code resulted in a proliferation of free first person shooters in the 2000s with almost all of them based on some variation of the Quake engine. This proved to be a boon to Linux gamers, but Dutch programmer Wouter van Oortmerssen rejected this path to forge Cube based in the same "just for fun" spirit with which Linus Torvalds first began work on the Linux kernel.

Unlike Torvalds though Cube was helped by Oortmerssen's deliberate rejection of the open source model, which often clashes with the auteur nature of independent game development. The source code is available under the zlib License for anyone to modify, but the distributed game itself is his own curated creation, with his singular vision proving to be what happens when you mix Doom, Quake, and Serious Sam in a blender.

In the end I had to use the oldest binaries still available from SourceForge, those contained in the cube_2002_10_20.zip archive, as every later packaged version of the game was built against libstdc++5 which is too new for my Red Hat Linux 7.3 installation. This places me in the curious position of being on the opposite end of the glibc 2.3 compatibility problem, as this is the main library which causes issues when running certain Loki Software games on newer systems.

I did try building the final Cube source code myself on Dianoga, but was not able to provide the ENet development libraries that Cube requires. The last released binaries do still run on my modern Arch Linux computer, although I had to modify the launch script or it would complain "Your processor does not have a supported Cube client" upon discovering I was starting the game under x86_64. Overriding the check resolved this, but it still suffers from a video memory leak.

While Cube never became the slickest game, this early version from 2002 is even rougher around the edges. I actually found the game easier to play after familiarizing myself more with the final release and then going back, as the monsters in their earlier incarnations do not telegraph their attacks as much and simply transform into meaty chunks when killed, not giving me as much feedback to aid in developing viable counters.

 

Single player consists of two modes, "SP" which plays like a standard first person shooter campaign where you progress through levels unlocking areas until all the monsters are killed, and "DMSP" which takes the form of a horde mode but with there still being a finite number of enemies to eliminate on a map. These work, but it is way too easy to end up with just one or two monsters left on a level, forcing you to scour the entire map again in search of them.

Limitations like this make "DMSP" more enjoyable than the "SP" mode, as the tighter formula of stock up, hold your ground, then hunt down the stragglers, rinse and repeat, plays more to the game's strengths with the chaotic gunplay and monster infighting. More remarkable than Cube itself is the engine that powers it, due to its advanced in-game level editing abilities but also the engine's conspicuous simplicity.

Levels are actually displayed using a 2D height map similar to that of the original Doom, having most of the same restraints such as no rooms over other rooms, but with Cube also supporting slopes and 3D modeled polygonal assets. The result is a delightful blend of both the old and the new, which along with all the map data being interpreted on the fly makes for an easy yet powerful creative tool for constructing levels or even entire new games.

The performance of the Cube engine was also quite acceptable, feeling fluid for me except for in the most intense situations even when using default settings. There were some graphical glitches, mostly along the seams of walls, floors, skyboxes, as well as the edges of water, and there were a few broken transparencies with projectile sprites. Overbright lighting also gets disabled, which is odd as the game documentation states that my video card should support it.

The flexibility of the engine resulted in a number of forks, the most notable being AssaultCube, a standalone tactical spin off which still sees active development. There is also the sequel Cube 2Sauerbraten, which brings the same editing features of Cube to a full 3D game engine, and was last updated in 2020. Having put my Rage 128 Pro through its paces running three different OpenGL game engines on Linux, let us now try to exercise my Sound Blaster 16 instead.

Carrying on in Part 16: We Are All Doomed

Article taken from GamingOnLinux.com.
16 Likes
We do often include affiliate links to earn us some pennies. We are currently affiliated with GOG and Humble Store. See more here.
About the author -
author picture
Hamish Paul Wilson is a free software developer, game critic, amateur writer, and farm labourer living in rural Alberta, Canada. He is an advocate of both DRM free Linux gaming and the free software movement alongside his other causes, and more information on him can be found at his icculus.org homepage where he lists everything he is currently involved in: http://icculus.org/~hamish
See more from me
5 comments

Hamish 7 Mar
The Cube homepage is hosted here:
http://cubeengine.com/cube.php

Older Cube releases can be download from here:
https://sourceforge.net/projects/cube/files/cube/

And a review by Howard Wen for LinuxDevCenter.com is archived here:
https://web.archive.org/web/20070930160850/http://linuxdevcenter.com/pub/a/linux/2002/10/10/cube3d.html?page=1
rea987 7 Mar
QuoteThe flexibility of the engine resulted in a number of forks, the most notable being AssaultCube, a standalone tactical spin off which still sees active development.

AssaultCube is still quite fun. I have just noticed that AssaultCube has been released on Google Play for Android for free. Interesting...

https://play.google.com/store/apps/details?id=net.cubers.assaultcube&pcampaignid
mirv 7 Mar
View PC info
  • Supporter Plus
Sadly (I suppose) this is another one of those games that I heard of, but never played, barely even saw. 56k modem and strict data caps put limits on what was available (though by 2002 I did have a better connection....and still very strict data caps).
Drakker 8 Mar
Ahhh, Cube, good old times. I made quite a few levels for this game that made it into the official releases. I loved the simplicity and elegance of this engine, it's so much fun to make levels with it. It has a lot of restrictions, but in my book, that's a good way to spark creativity. Sauerbraten / Cube 2 was very fun to make levels for too, but you had so many possibilities that making levels took much longer than with the original Cube.
Calinou 8 Mar
Cube recently celebrated its 20th anniversary! Someone made a page that hosts the very first version available (no Linux binary, but runs well in WINE): http://cubeengine.com/forum.php?action=display_thread&thread_id=2763
I only played the last Cube release (20050829) before trying out the first version, so it's interesting to see how it evolved over time. It's interesting to note that the old shotgun sound is very similar to the super shotgun sound currently used in Freedoom: Phase 2.

Fun fact: In February 2022, the game's source code was relicensed to Zlib (after using a modified Zlib license that made it GPL-incompatible.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: Liberapay or PayPal.

This ensures all of our main content remains totally free for everyone with no article paywalls. We also don't have tons of adverts, there's also no tracking and we respect your privacy. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register

Or login with...
Sign in with Steam Sign in with Twitter Sign in with Google
Social logins require cookies to stay logged in.