Return to Castle Wolfenstein for AmigaOS 3.x
A port of the Return to Castle Wolfenstein single player game to 68k AmigaOS 3.x. It
draws through minigl.library and was written for PiStorm3D, the hardware 3D (MiniGL) for
Raspberry Pi 4 / CM4 based PiStorm accelerators running Emu68. On an A1200 with a PiStorm it runs the
first level at 42 fps in 1024×768.
What is it?
Return to Castle Wolfenstein (2001) is id Software's engine with Gray Matter's game. id Software released
its source code under the GPL, and this port is based on the MorphOS port of that release. It brings the
single player game to the classic 68k AmigaOS: the game runs as 68k code under Emu68 on the PiStorm's
Raspberry Pi, and the 3D drawing goes to the Pi's GPU through PiStorm3D's minigl.library.
- Version
- 0.4.1, 23 November 2026
- Game
- Single player (menus, levels, cutscenes, sound, keyboard, mouse, console)
- Renderer
minigl.libraryfrom PiStorm3D- Based on
- The MorphOS port of id Software's GPL source release
- Tested on
- A1200 + PiStorm (Raspberry Pi 4, Emu68), AmigaOS 3.2,
minigl.library29.3 and 30.0 - License
- GPL v3 with id Software's additional terms
Screenshots
Version 0.4.1 at 1280×720 on the real A1200 with PiStorm/Emu68. Click a picture to enlarge it.
Frame rate
A1200 with PiStorm/Emu68, minigl.library 30.0, first level (escape1), standing
still. Moving and fighting is slower.
| Resolution | 0.4 (fps) | 0.4.1 (fps) | Gain |
|---|---|---|---|
| 640×480 | 47 | 56 | +9 |
| 800×600 | 42 | 50 | +8 |
| 1024×768 (default) | 36 | 42 | +6 |
| 1280×720 | 33 | 37 | +4 |
| 1920×1080 | 19 | 20 | +1 |
In the open (dam, 1024×768): 31 fps in 0.4.1, 25 fps in 0.4.
What's new in 0.4.1
Released on 23 November 2026.
- Freeze fixed. After a few minutes of play the world went on, but the player stopped answering keyboard and mouse and the sound looped. The game's task priority stayed at 20 and starved all other tasks; it is now put back after every frame.
- Faster, same picture. Dynamic lights skip vertexes they cannot reach, and the sound is mixed at 22 kHz (RTCW's own rate) instead of 48 kHz.
- Dynamic lights: by default only the ones the game forces (
r_dynamiclight 2), about 3 fps more in open areas./r_dynamiclight 1in the console brings back the light of torches, fire and muzzle flashes. - GL_ADD is on (
r_ext_texture_env_add 0turns it off). - Mouse: movement no longer goes through a small event ring that could overflow and drop button releases.
0.4 (19 November 2026)
- Tested on hardware with
minigl.library29.3 and 30.0. - About 41 → 47 fps at 640×480: a newer compiler with FPU code and a cheaper clock through Emu68.
- Level loading about 4 seconds shorter.
- 720p and 1080p in the menu; 1024×768 and full-size textures by default.
- Fixes for vanishing console text and for starting with
+map. - A Workbench icon (64×64 GlowIcon).
Requirements
- AmigaOS 3.x
- 68040 or better with an FPU (Emu68 qualifies)
- An RTG graphics system (Picasso96 or CyberGraphX)
- AHI for sound
minigl.library29.1 or newer from PiStorm3D (not included), so in practice a Raspberry Pi 4 / CM4 based PiStorm with Emu68- Plenty of Fast RAM: about 200 MB free is recommended (about 25 MB for the program, 96 MB for sound,
the rest for game data). With less, start the game with
+set com_soundMegs 24. - The game data: your own PC copy of Return to Castle Wolfenstein, patched to 1.41
(
pak0.pk3,sp_pak1.pk3,sp_pak2.pk3,sp_pak3.pk3)
Installation
Download RTCW_Pistorm_v0.4.1.lha and unpack it. Make sure
minigl.library 29.1 or newer from PiStorm3D is in LIBS:. Then:
- Copy the
main/directory of your PC installation (at leastpak0.pk3,sp_pak1.pk3,sp_pak2.pk3,sp_pak3.pk3) to, for example,Games:RTCW/main. - Copy
rtcw-spand its icon toGames:RTCW, andamiga.cfgtoGames:RTCW/main. - Double-click the icon on Workbench, or start it from a Shell:
cd Games:RTCW
rtcw-sp +exec amiga.cfg
Add exec amiga.cfg to main/autoexec.cfg to keep the settings. More notes (sound,
console, settings) are in the archive and in the repository's README, in English and
Turkish. The game data must never be distributed with the port.
About this port
The code of this port was written entirely with Claude Code, Anthropic's AI coding assistant. Every build was run on a real A1200, and the logs went back to Claude Code, which read the source, found the problems and wrote the fixes.
It is an experimental project, made to see how far this way of working can go, not the work of an experienced Amiga game programmer, and there is a lot left to improve. A good programmer can do wonderful things with this code base and with PiStorm3D: contributions are welcome.
License and credits
GPL v3 with id Software's additional terms, like the source release it is based on. Return to Castle Wolfenstein © id Software; the game data, the artwork in the screenshots and the name belong to their owners. This is an unofficial port, not affiliated with or endorsed by id Software, Activision or Bethesda.
- id Software: Return to Castle Wolfenstein and its GPL source release
- Mark Olsen and Sigbjørn Skjæret: the MorphOS port this port is based on
- Hyperion Entertainment: MiniGL
- Steffen Häuser and the PiStorm3D contributors: PiStorm3D / MiniGLV3D
- Stefan “Bebbo” Franke: the m68k-amigaos-gcc toolchain
- Sean Barrett and contributors: stb_sprintf
- Claude Code (Anthropic): wrote the code of this port