Repository navigation
Moon Dancer 0.9.0b
Pre-releaseMoon Dancer 0.9.0b — first public beta
A from-scratch, native runtime for Michael Jackson's Moonwalker (Sega System
18, 1990). Not a MAME front end: the board's 68000, memory mapper, video
hardware, I/O chip and sound board are implemented in portable C/C++, and the
game's FD1094-encrypted program is executed as a trace-guided static C
translation.
You must own the arcade ROM set (mwalk.zip). This repository and its
releases contain no game data — the translated program is derived from your own
ROMs at build time and is intentionally excluded from the repository. For that
reason this release ships source only: build your own binary from your own
ROM set (Quick start in the README, ~5 minutes with CMake + the bundled SDL2).
Accuracy highlights (all verified against the MAME oracle)
- Sprite renderer matches MAME's
sega_sys16bdevice exactly — zoomed sprites
no longer shear, wobble, or lose their left half (transparent pixels consume
a screen column). - Widescreen map margins mirror the quadrant the level loader streams; the
foreign-map slabs past the original 320-column window are gone. - Interpreter branch patcher preserves branch lengths — no more post-monkey-room
crash from a byte branch patched as a word branch. - RMW helpers no longer advance
(An)+/-(An)twice; 16-bit writes to the
315-5195 mapper window decode as a single low-byte register write. - The vblank palette queue drains every frame: 60,000-frame attract and
30,000-frame gameplay runs complete with zero interpreter fallbacks, zero
illegal opcodes, zero watchdog resets. - RF5C68 PCM model fixed (bank shift, 10 MHz clock, output level) — the
dance-magic song plays, envelope-matched against MAME. - Keyboard focus: the launcher now grants foreground rights and the game claims
focus on startup (previously the game window never received keyboard events
when launched from the launcher; gamepads kept working because they're polled).
Features
- Launcher with generated synthwave soundtrack (MUSIC ON/OFF, persisted),
archive browser, live controller state, shared settings. - True widescreen — 16:9 / 16:10 / 21:9 display modes from boot (never
stretched), attract screens still presented in 4:3. - Video options — shader presets OFF / SCANLINES / CRT with intensity
slider (computed per emulated scanline), window-resolution presets. - Cheat menu (in-game F1) — infinite lives, invincibility, infinite dance
magic, free credits; global, session-only, live-toggleable, cleared on reset. - Three simultaneous gamepads — per-player keyboard and pad remapping,
GUID-based assignment that survives replug/reorder, reserved-slot display. - Sound on by default with a live SOUND toggle.
Known limitations
- Two identical controller models share one GUID and cannot be told apart.
- The free-credits cheat persists in NVRAM, like real inserted coins.
- A legacy
scanlines=0line in an oldsettings.iniloads as the SCANLINES
default (delete the line to use the new presets). - Act select was deliberately not included in the cheat menu: every poked
value reverts within 1–2 frames or corrupts the player object.
Copyright
Moonwalker, its graphics, sound and program code are © Sega. This project
distributes only its own original runtime code (MIT license) and expects each
user to supply their own legally obtained ROM set. Binaries built from your
ROMs embed a derived translation — keep them private.