antegre.com
Work:Docs/RTCW.guide

Return to Castle Wolfenstein for AmigaOS 3.x

Version 0.4.1 (23.11.2026) · AmigaOS 3.x · 68040+ with FPU · PiStorm3D (MiniGL) · GPL v3

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.

Download RTCW_Pistorm_v0.4.1.lha (1.5 MB) from the 0.4.1 release · source code: github.com/Sdursun/ReturnToCastleWolfenstein_Minigl68k. The game data is not included: you need your own PC copy of the game.
A castle corridor with torches and suits of armour, on the A1200
A castle corridor with torches, 1280×720 on the A1200. Return to Castle Wolfenstein © id Software.
The main menu of Return to Castle Wolfenstein on the A1200
The main menu, 1280×720. Return to Castle Wolfenstein © id Software.

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.library from 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.library 29.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.

The prison cell of the first level, on the A1200
First level: the prison cell. Return to Castle Wolfenstein © id Software.
The library room in the village, on the A1200
The village: the library room. Return to Castle Wolfenstein © id Software.
The dam at night, an open area, on the A1200
The dam at night, an open area. Return to Castle Wolfenstein © id Software.
A forest level, on the A1200
The forest. Return to Castle Wolfenstein © id Software.

Frame rate

A1200 with PiStorm/Emu68, minigl.library 30.0, first level (escape1), standing still. Moving and fighting is slower.

Resolution0.4 (fps)0.4.1 (fps)Gain
640×4804756+9
800×6004250+8
1024×768 (default)3642+6
1280×7203337+4
1920×10801920+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 1 in the console brings back the light of torches, fire and muzzle flashes.
  • GL_ADD is on (r_ext_texture_env_add 0 turns 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.library 29.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.library 29.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:

  1. Copy the main/ directory of your PC installation (at least pak0.pk3, sp_pak1.pk3, sp_pak2.pk3, sp_pak3.pk3) to, for example, Games:RTCW/main.
  2. Copy rtcw-sp and its icon to Games:RTCW, and amiga.cfg to Games:RTCW/main.
  3. 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