Juggernaut 3D for DOS-GL
A top-down 3D, low-poly articulated-lorry delivery game for MS-DOS on Matrox G200/G400/G450 cards: hitch a trailer at a depot, haul it across a procedurally generated 4 x 4 km world, reverse it into a loading bay. The look is light-hearted rather than realistic: Transport Tycoon's toy world, Ignition's chunky vehicles, Fortnite's colour and bounce.
It runs on DOS-GL (OpenGL 1.1 on Matrox cards under DJGPP, part of
RetroGPU) through SDL3, and was the first game on dgk,
the DOS-GL Kit: the game-agnostic layer (main loop, platform, drawing within
DOS-GL's subset, text, mixer, test hooks). dgk grew here as kit/ and now
has its own repository, dgk (in ~/dgk),
which a second game (Echoes of the Void) uses too.
Minimum machine: Pentium II 266, Matrox G200, Sound Blaster 16 (or none), 640x480. Faster machines and the G400/G450 get more detail.
Status: a new look after F8 (2026-11): cartoon and smooth in the
manner of the N64 and GameCube rather than faceted; smooth hills, fields
cut true with hedges along them, round trees, houses with pitched roofs,
a rounded lorry lit as it turns, contact shadows, the route's chevrons,
markers on the target, and a camera that comes down with speed to show
the sky and a haze over the horizon. Each detail preset is meant for a
card, and the game starts at the one for the card it finds: LOW for the
G200 (the old cost: 117 fps on a G400), MEDIUM for the G400 and TNT2 (72.7
and 112 fps), HIGH for the Radeon 7200/7500 to come (docs/design.md,
"The look"; docs/perf.md). Before that, F8: hardening and a release ZIP
(make release; docs/bench.md lists what waits on real machines). F7: a title screen, a pause menu and options
(detail, screen size, vsync, volume), three detail presets with a
governor, and the world culled to what the camera sees. Before that, F6: a career. Money earned is kept in CAREER.DAT and
spent in the garage on paint jobs, horns, decals, licences for flatbeds
and tankers, and a bigger cab; deliveries end in coins, confetti and a
bouncing callout. Before that (F4, F5): the jobs loop, full sound, and
joysticks and wheels. Take a job from a depot's board,
back under its trailer (box, flatbed or tanker), follow the route on the
minimap to another depot and reverse the trailer into a bay, watching a
reversing camera's guide lines; the dock is graded and paid. The world is generated (make data: towns, depots with
loading bays, a road network levelled into gentle hills, patchwork fields,
woods) and drawn chunk by chunk, the lorry riding its slopes. The game
runs on DOS, Linux and headless (kinematic tractor and trailer, a six-speed
automatic, collisions, synthesised sounds, autopilots, checked replays),
and DOSBench times it (FW1, FW3, FWP; FW2, the whole mission, by hand).
Needs RetroGPU (DOS-GL, the HAL and the harness) in ~/RetroGPU, with
SDL3 built (make gl-sdl gl-sdl-host there) and the DJGPP kit (make setup-djgpp there), and dgk in ~/dgk (config.mk: RETROGPU, DGK;
config.local.mk overrides either). Both are used from their main as they
are, with no pins: after a change in one, make regress.
make dos # build/dos/FWHEEL.EXE (ship CWSDPMI.EXE beside it)
make linux # build/linux/fwheel (SDL3 + desktop OpenGL; built in the dev container)
make headless # build/headless/fwheel-hl (OSMesa, for tests)
make loopa CARD=g450 # FWHEEL.EXE in 86Box (RetroGPU's harness)
make jobsweep # the job autopilot on every job, headless
make tests-host # unit tests (no screen) and the GL-subset check
make suite CARD=g450 # Loop A: sound, joystick, shop, menus, exits and crashes, memory,
# screen sizes, cards agreeing, the release ZIP
make release # dist/fwheel-ID.zip: the game, CWSDPMI, README.TXT
make winvm CARD=g450 # dist/fwheel-g450-vm.zip: a ready-to-boot 86Box machine with it installed
# (RetroGPU's patched 86Box; type FW at the prompt)
Playing starts at the title screen; Esc pauses. Keys: arrows or WASD to steer, accelerate and brake (hold the brake at a standstill to reverse), Space for the handbrake, H for the horn, 1-3 to take a job from a depot's board, Backspace to cancel it before coupling, G for the garage (paint, horns, decals, licences, a bigger cab), Z to zoom, J to set up a joystick or wheel, Esc to quit. With a joystick: its steering, accelerator and brake as set up, button 1 the handbrake, button 2 the horn.
The world comes from a seed: make data WORLD_SEED=n (default 1;
make data-check checks seed 1 against data/golden/world.sha).
Command line: -mode WxH, -novsync, -nosound, and for tests -frames N,
-fixed (one tick per frame), -shot F:NAME, -nodraw, -test (see
dgk/app.h in dgk); the game adds -world FILE (default
WORLD.PAK; the F1 test yard is YARD.PAK), -autopilot (-laps N),
-autojob (-job D:T:B), -dockpose, -pose X:Y:H:V (the rig held at a place, the camera as at speed V), -park X:Y:H (the game starts with the rig standing there), -cars N (traffic: 12, 0 none, up to 40), -highlights (with -autojob: three pieces of the job timed, FW3), -soundtest, -musictest (the driving tunes, the engine silent), -musictune NAME (one tune, looped), -calibrate, -joylog, -career FILE, -money N, -fxtest,
-detail low|medium|high, -zoom N, -title,
-record FILE, -replay FILE, -hash, -trace N, -timedemo FILE -dbtest NAME,
-probe [quick] and -tourshots N.
MIT (LICENSE). Every asset is generated from this repository (the font
from data/font5x7.txt).