A fan port of Sid Meier's SimGolf (Firaxis / EA, 2002) to WebAssembly, so it runs in a web browser on Mac, Linux and Windows with nothing to install.
Play: https://richardatct.github.io/simgolf-web/
This repository and the page contain no game files. You bring your own copy of the game, and it never leaves your computer.
- Get the game files. You need two things:
- the game disc: the
.7zfrom the Internet Archive (about 250 MB; an.isoof the disc from elsewhere works too), and - the v1.02 no-CD
golf.exe, usually a zip calledSIMGOLF.102.ENG.MYTH.NOCD.ZIP, from Abandonware DOS.
- the game disc: the
- Open the page in Chrome or Edge, version 137 or newer, on a desktop or laptop. (Firefox and Safari can't run it yet.)
- Click Choose your game files and pick both files as they downloaded; there's no need to unzip anything. The page unpacks the game in about a minute and starts it. Next time it goes straight to the game.
- Saves stay in your browser. Press Alt+S (Option+S on a Mac) in the game, or click the Saves button in the bottom-right corner, to download a save or import one. Ctrl+F8 also works except on a Mac, where macOS keeps it.
- To start over with different files, press Alt+S and use the button at the bottom of the panel.
- To turn off scrolling the course by touching a screen edge with the
pointer, press Alt+S and untick it under Settings (or add
?edgescroll=0to the address). The arrow keys still scroll. - Clearing your browser's site data for the page removes the unpacked game and your saves (download the saves first).
If you're enjoying SimGolf again, you can buy me a coffee. Thank you!
The game isn't emulated. Its code was decompiled with Ghidra and translated mechanically into C, which Emscripten compiles to WebAssembly. Windows, graphics, the 3D terrain renderer and sound are replaced with browser implementations. docs/porting.md explains the approach and docs/building.md how to build it yourself.
The same code also runs as a desktop app for macOS and Windows: the WebAssembly module is translated back to native code with wasm2c and runs in a small SDL2 host (native/README.md).
This is an unofficial fan project, not affiliated with or endorsed by
Firaxis Games, Electronic Arts or Take-Two Interactive. SimGolf and its
assets are their property; this project distributes none of the game's files.
The port's own code is MIT licensed (LICENSE); third-party pieces
keep their licences (third_party/: unshield and webm-muxer are MIT, 7-Zip and FFmpeg are LGPL).