Supaplex is a game made in the early nineties.
Since then the source code has been lost. Some enthusiasts have disassembled the game, fixed many bugs, and added many features. Today the game and the so-called speed fix can be downloaded free from here. The source code for the speed fix is likewise, unavailable.
OpenSupaplex is a 1:1 reimplementation of the original game in C and SDL, with just a few changes to make it easy to use with game controllers, and also easy to port to any platform.
If you want to build the original game from its disassembled source code, please refer to the instructions in cilliemalan's repo.
Other than that, OpenSupaplex can be built for any of the following platforms:
More platforms (like Android, iOS and tvOS) to come Soon™.
Depending on the platform, you need to install a different toolchain to build the game for that platform. You will also need to install the libraries needed to make it work. Those are basically SDL and SDL_mixer, and their dependencies. All ports use SDL 2, except for PSP, Nintendo DS, Nintendo 3DS, Nintendo Wii and RISC OS, which use SDL 1.2.
All platforms supported are built from CI using GitHub Actions. You can check those workflows and the CI scripts used in them for more info about how to prepare the dev environment.
Once the development environment is set up, building the game is usually as easy as:
$ make
On macOS, just opening the Xcode project and running it is enough.
If you like this project, there are several ways you can contribute to it:
New features are more than welcome. However, the main goal of OpenSupaplex is having a 1:1 clone of the original Supaplex game, in every possible aspect, and only making exceptions wherever is reasonable to do so.
New features must NOT change how the game works or looks in a way that CANNOT be avoided. For those kind of features, adding some kind of setting so users can opt-in is the way to go.
The whole reason for OpenSupaplex to exist is to make the experience of the original game available natively to as many platforms as possible. If you want to bring OpenSupaplex to a new platform, please go for it!
But please be mindful of how ports are structured already in the repo:
src
folder you can create also a folder with the (lowercase) name of the platform
and add specific implementation files there.#if
statements for the new platform.I'm also very open to suggestions about how to make things better. Constructive feedback on my code, how to structure the project to make it easier to handle all the ports… just file an issue and we can discuss it there.
By default OpenSupaplex on Linux reads and writes files in current working directory. To make it more package-friendly, provide the following in CFLAGS: -DFILE_FHS_XDG_DIRS -DFILE_DATA_PATH=/usr/share/OpenSupaplex
As expressed in cilliemalan's repo, the disassembled assembly source code of the game is released under the MIT license.
This repository also includes the resources from the original game, now distributed as freeware, that belong to their original authors.
On the other hand, I release the reimplementation in C under the GPLv3 license.
If you have a problem with this please don't hesitate to contact me.