Pinball Fantasies Native

Pinball Fantasies Native is a reimplementation of the DOS game Pinball Fantasies for modern platforms with gamepad support.

README

Pinball Fantasies Native

English | Русский

Native, source-guided beta reimplementation of the DOS version of Pinball Fantasies for modern Windows, Linux, macOS and Android.

Important: public builds include only the official 10-minute Party Land demo. To play the full game you need your own legally obtained DOS copy.

Quick start

Download the latest v0.1.8 release for your platform:

What's new in v0.1.8

  • Gamepads on all platforms: SDL2 GameController on Linux/Steam Deck, XInput on Windows, Apple GameController on macOS, and controller input on Android. Shoulder buttons/triggers control flippers; X charges and releases the plunger, Y nudges, and Start pauses. Context-sensitive hints appear over the game frame.
  • PlayStation controllers on Windows: DualSense, DualSense Edge, and DualShock 4 work natively over USB or Bluetooth, without Steam or DS4Windows.
  • Smoother Windows presentation: frames are paced to the monitor's vertical blank. The PF12_VSYNC environment variable accepts vblank (default), dwm, or off.
  • Android touch fix: removed a stray amber strip beside the Pull control when charging the plunger.

Game rules and physics are unchanged. See the v0.1.8 release notes and gamepad / Steam Deck controls.

Every build starts by offering a choice until the full game is installed: import the full game from your original DOS folder, or play the bundled 10-minute demo. Imported files are validated and copied into the app's own storage; the choice no longer appears once the full game is imported.

For macOS 13 or later, download the ZIP for your Mac, extract it and launch the app. Choose Import Full Game… and select your original DOS game folder; files are validated and copied into Application Support. Public Mac bundles are ad-hoc signed and not notarized. See macOS build and usage for details.

On Windows/Linux, Import game… copies the chosen folder into userdata/Data beside the executable (Linux uses the desktop's zenity or kdialog folder chooser). You can also keep the original DOS data beside the executable, or point the port to it explicitly; both skip the choice:

pinballfantasies.exe -data-dir "D:\Games\Pinball Fantasies"
chmod +x PinballFantasies-x86_64.AppImage
./PinballFantasies-x86_64.AppImage -data-dir "/path/to/Pinball Fantasies"

Android quick start

Download the public PinballFantasies-android.apk from the v0.1.8 release above:

  1. Install the APK and open Pinball Fantasies (Android 8.1 or later).
  2. Tap Import DOS folder and choose the folder containing the supported original DOS files listed below, or tap Play 10-minute demo.
  3. The app validates and copies the 11 required PRG/MOD files and optional PINBALL.CFG into private app storage; the supplied originals remain unchanged.
  4. Launch a table using the contextual touch controls, or attach a physical keyboard. Touch panels automatically hide while an external keyboard is active.

Apart from the 10-minute demo, no game files are bundled. The universal APK contains arm64-v8a and x86_64, is development-signed, and supports 16 KB page-size devices. If an existing APK has a different signing key, uninstall it before installing this release, then reimport your DOS folder. See Android usage and gamepad controls.

Four DOS installations are supported: the original retail release, the Power Pack 21STCENT/FANTASY set, and both Deluxe CD PFD/FANTASY sets (including the GOG copy). Point the app at the folder holding the game files; the layout is detected automatically. See runtime data for details.

Each supported installation provides these 11 required PRG/MOD runtime files:

INTRO.PRG  INTRO.MOD  MOD2.MOD
TABLE1.PRG TABLE1.MOD
TABLE2.PRG TABLE2.MOD
TABLE3.PRG TABLE3.MOD
TABLE4.PRG TABLE4.MOD

The official 10-minute Party Land DOS demo ships with every build. It runs the demo's own intro, table selector (Party Land is the only playable table), options and closing text; a game ends when the demo timer expires. A folder with only the demo's INTRO.PRG, INTRO.MOD, MOD2.MOD, TABLE1.PRG and TABLE1.MOD also works with -data-dir. See the demo notes for what is proved and what follows the full-game rules.

PINBALL.CFG is an optional legacy settings seed. Missing or malformed settings use native defaults; writable PFNC settings live in native state. Runtime accepts the supported consumed-data layout; exact whole-file hashes are reserved for research and parity fixtures.

The originals are treated as read-only data. Windows/Linux write native settings, high scores and logs to userdata/ beside the executable/AppImage, with a per-user configuration directory as fallback. macOS imports originals into ~/Library/Application Support/PinballFantasies/Data/ and writes settings and high scores to ~/Library/Application Support/PinballFantasies/State/, outside the app bundle.

Optional legacy TABLE*.HI files are read-only score seeds on every platform; the macOS and Android importers copy them with the full game. Without them the native factory scores are used.

What is implemented

All four tables are playable:

  • Party Land
  • Speed Devils
  • Billion Dollar Gameshow
  • Stones ’N Bones

The port includes native table rules and state machines, integer ball physics, flippers, plunger, nudging and tilt, matrix display, lamps and animated playfield patches, high scores, options, tracker/module music and effects, resizable windows, platform fullscreen and native Windows/Linux/macOS platform backends. Windows uses Win32/GDI/waveOut, Linux uses SDL2, and macOS uses AppKit/Core Animation/AudioUnit around the shared Go engine and C ABI.

This is not DOSBox, an x86 interpreter or a wrapper around the original executable. The original files are decoded as data; their x86 code is never executed.

Controls and multiplayer

Before loading a table:

KeyAction
F1–F4Select Party Land / Speed Devils / Billion Dollar Gameshow / Stones ’N Bones
F5Options

Inside a loaded table:

KeyAction
F1–F8Start a game with 1–8 players
EnterAdd a player before the first ball is launched
Down ArrowHold to charge the plunger, release to launch
Left/right Shift, Ctrl, Alt (Option on macOS)Corresponding left/right flippers
SpaceNudge; repeated nudges can tilt
PPause
MToggle music
Alt+Enter (Windows/Linux)Toggle borderless fullscreen
Option+Return, Command+F or View → Toggle Full Screen (macOS)Toggle native fullscreen
EscBack / quit according to the current screen

On macOS, Z / / and Left / Right Arrow are alternate left/right flipper controls. If your Mac reports Shift sides reversed, enable View → Swap Left/Right Shift; the correction persists across launches and affects only Shift.

Gamepads are supported through SDL2 on Linux, XInput and native DualSense/DualShock 4 HID on Windows, GameController on macOS and Android controller events: shoulders/triggers operate the flippers, X charges/releases the plunger, Y nudges, and Start pauses. See gamepad controls and two Steam Deck layouts for menu controls, Steam Input setup and remaining physical-device checks.

Before the first launch, F1–F8 can replace the player count and Enter can add a player up to eight. After the first launch the count is fixed for that game. Players rotate each ball round; extra balls stay with the player who earned them. Each player retains their own score and table state. The matrix presents the incoming player and ball immediately at handoff, before launch.

After an eight-player game, the original attract-mode behavior ignores Enter; use F1–F8 to start the next game.

Options and full-table mode

The native F5 options include 3/5 balls, HIGH/LOW angle, HARD/MEDIUM/SOFT/OFF scrolling, music and NORMAL/HIGH resolution.

SCROLLING: OFF is a native extension that shows the complete 320×576 playfield together with the 320×33 matrix, producing a 320×609 logical frame. Gameplay continues through the same physics and rules as the scrolling modes.

Audio

The native mixer reproduces the original four-channel tracker/module playback and effects as 48 kHz signed 16-bit stereo. Tracker voices 0 and 3 are routed left, and 1 and 2 right, following the Amiga Paula channel layout.

Build and verification

See build instructions. Public CI runs asset-free shared tests and native Windows/Linux checks, plus Apple SDK ARM64 host tests/build and an Intel x86_64 cross-build. It downloads no commercial game data or historical source. Hosted asset-free checks are separate from local original-backed validation. macOS original-backed replays and native journeys passed, and physical Mac gameplay/input acceptance is recorded in the validation report.

Useful project documentation:

The preserved Party deterministic oracle is 1200 ticks, score 000002300000, ball 2, frame SHA256 f9b5160b3173c35f2798dd5e270e7ded40c33642605e21c0935cd083ff231a5e.

Beta limitations

On some Linux multi-monitor desktops, entering or leaving fullscreen may briefly flicker or move the window between displays.

A native Windows Win32/GDI/waveOut build is provided. Hosted native Windows build/tests and the documented Wine/live development regressions pass, but this beta does not claim exhaustive physical-Windows coverage across every multiplayer/fullscreen/audio combination.

Local-only personal builder

For local Windows/Linux use, ./tools/build_personal_release.sh "/path/to/original/game" creates self-contained builds under release/personal/ from the same 11 game-data inputs and optional settings seed. These local builds contain your commercial game data and are not distributable project releases. Do not commit, push or upload them.

For macOS, python3 tools/build_personal_macos.py "/path/to/original/game" creates separate ARM64 and x86_64 apps with automatic first-run import. The same local-only commercial-data boundary applies.

License and game data

Native code and project-authored material are released under the MIT License, copyright (c) 2026 voobrazimoe.

Pinball Fantasies itself is not relicensed. Original commercial game data, artwork, music and historical/reference source material are not covered by the MIT license. This project claims no ownership of the original game's trademarks, artwork, music or commercial data.

See provenance for the project boundary.