This repo has moved to: https://gitlab.com/mbitsnbites/mc1-quake
This is the classic game Quake (by id Software) ported to the MRISC32-based computer MC1.
MC1-Quake is based on the original Quake v1.09 code base from 1997, with some bugfixes and alterations to make it work on MRISC32, and of course graphics and I/O routines for the MC1 computer.
Original readme.txt.
The source code is released under the GNU General Public License, as outlined in gnu.txt.
In order to build MC1-Quake for an MC1 target, you need the MRISC32 GNU toolchain installed. You can find it here.
$ mkdir WinQuake/out
$ cd WinQuake/out
$ cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=../mc1-toolchain.cmake -DCMAKE_BUILD_TYPE=Release ..
$ ninja
The resulting ELF binary is WinQuake/out/mc1quake
, which is runnable in the MRISC32 simulator (use run.sh
or run.bat
to run it).
To build for an MC1 computer target, install the MC1 SDK and add -DMC1SDK_HOME=/path/to/mc1-sdk-installation
to the CMake options.
For testing purposes, you can also build MC1-Quake for other platforms, such as Linux.
To install dependencies on Ubuntu:
$ sudo apt install libsdl2-dev
To build:
$ mkdir src/out-host
$ cd src/out-host
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ..
$ ninja
To run Quake you need the game data. Search the internetz for Quake Shareware V1.09 to get hold of the shareware version of Quake that includes the necessary game data.
mc1quake
will search for an id1
folder in the current working directory (i.e. the folder from which the program is started).