This is a port to Linux & OpenPandora of Stunt Car Racer Remake, a windows remake of the old Stunt Car Racer from the AtariST/Amiga time.
The game is built with CMake. Select the target platform with the
STUNT_PLATFORM cache variable: LINUX (default on desktop), PANDORA,
PYRA, ODROID, ODROIDN1 or CHIP.
cmake -S . -B build -DSTUNT_PLATFORM=LINUX -DSTUNT_SDL2=ON
cmake --build build -jUseful options:
STUNT_SDL2=ONuses SDL2 instead of SDL 1.2 (default: SDL 1.2)STUNT_GLES=ONuses OpenGL ES instead of desktop OpenGLSTUNT_32BIT=ONbuilds a 32-bit executable-DCMAKE_BUILD_TYPE=Debug|Release|Profileselects the build configuration (default:Release)
cmake -S . -B build -G "Visual Studio 17 2022" -A Win32
cmake --build build --config ReleaseUse -A x64 for a 64-bit build. The Microsoft DirectX SDK (June 2010) is
required. If CMake cannot find it, set -DSTUNT_DXSDK_DIR=<sdk root>. The
generated Visual Studio solution provides Debug, Release and Profile
configurations.
emcmake cmake -S . -B build-emscripten -DSTUNT_PLATFORM=EMSCRIPTEN
cmake --build build-emscriptenThe web build is written to docs/index.html. gl4es is expected at ../gl4es;
override this with -DSTUNT_GL4ES_DIR=<path>.
You can play the Emscripten version, built using gl4es here: Web version
Some code (the OpenAL part) come from Forsaken/ProjectX port by chino.
Both the Windows and Linux/Emscripten builds support arbitrary window sizes:
- Resizable window with automatic aspect ratio preservation (800:480 for widescreen, 4:3 for standard)
- Dynamic font scaling - fonts and UI text scale based on window size
- Dynamic cockpit scaling - cockpit overlay scales proportionally with window resolution
- Intelligent positioning - UI elements maintain proper positioning at any resolution
Technical Details:
- Windows uses a Win32
WM_SIZINGhandler; Linux/Emscripten use SDL2 window resize events - Rendering uses the real DirectX backbuffer or OpenGL drawable dimensions
- The initial window size follows the Windows build: roughly half the desktop size at 16:10
- Base resolutions: 800x480 (widescreen) or 640x480 (standard)
- All scaling factors calculated dynamically from current vs base resolution
Contributors: Windows enhancements by omenoid akaunist@gmail.com (2025-11-30)
Controls are: On Linux / Windows 4 Arrows for Turning / Accelerate / Brake Space for Boost
On Pandora DPad Left/Right for turning (X) Accelerate (B) Brake (R) Boost
Here is a video on StuntCarRemake running on the OpenPandora
Original project is here: http://sourceforge.net/projects/stuntcarremake/
