Original cartridge
15 pyramids, no level editor. Structural extraction and a desktop room viewer for four inventoried cartridge hashes.
Research preview
An open-source C# reconstruction of Konami's 1985 MSX game. The rooms, sprites and audio are extracted from a cartridge you own, and the gameplay rules are rebuilt from what the original code actually does — not from a description of it.
Download the preview View source
What this is not: a finished game. Extraction, the room viewer and most gameplay rules work and are validated; the full campaign, part of the presentation and the expanded disk editor are still in progress.
The 1985 cartridge and the 1988 disk collection are separate campaigns. They are not the same game with extra stages, and the project treats them separately.
15 pyramids, no level editor. Structural extraction and a desktop room viewer for four inventoried cartridge hashes.
60 levels, 95 rooms and a native level editor, also known as King's Valley Plus. Extraction and managed gameplay for all 60 pyramids; the editor is unfinished.
Everything below is implemented and compared against the cartridge's own routines.
Six catalog identities by size and hash. Title, rooms, sprite patterns, font and native audio are extracted, validated and cached outside the repository. The input file is never modified.
Native 256×192 data, integer point scaling and ten pixels of padding in a 256×212 frame. Terrain, stairs and item layers stay separate, so hiding a gem is a rendering change.
Fractional walking, stairs, jumping, gems, pickaxe, knife, five mummy types, death and linked exits — each with recorded evidence and update counts.
Captured from the application, not from an emulator. Rooms, sprites and the HUD come from the cartridge bytes; the movement and the mummies come from the measured routines.
The project keeps the numbers. Controlled runs are compared against the original routines in the MiniMsx core, and every claim below comes from one of those runs.
Full tables and the methodology are in docs/.
Compute SHA-1/SHA-256, check size and match one of six catalog entries before touching anything.
Assemble rooms and native audio with manifests and output hashes. A failed generation never replaces a working one.
Run controlled scenarios against the cartridge routines and record the update counts as evidence.
Release packages are built by GitHub Actions for Windows, Linux and macOS (Intel and Apple silicon), self-contained. You still need your own supported cartridge or disk image.
Or build from source:
git clone --recursive https://github.com/wagenheimer/kings-valley-1.git
cd kings-valley-1
dotnet build KingsValley1.slnx
# identify an image without extracting anything
dotnet run --project tools/KingsValley1.Tool -- inspect /path/to/cartridge.rom
No. It is a research preview with a working extraction pipeline, room viewer and a measured gameplay lab. The full campaign is not playable end to end yet.
Yes. The repository ships no ROM, no extracted graphics, no room dumps and no audio. You supply a supported image and everything is prepared locally on your machine.
Yes. Extraction and the viewer are implemented in C#; no emulator, BIOS or MSX hardware is required. The MiniMsx core is only used as an internal comparison reference.
The 1985 RC727 cartridge (15 pyramids) and the 1988 Konami Game Collection Vol. 1 disk (60 levels, 95 rooms). They are separate campaigns; see the ROM guide in the repository.
Controlled runs are compared against the cartridge's own routines in the MiniMsx core, and the evidence is recorded as update counts: 88 room backgrounds rebuilt from the native bytes and checked against the cartridge rendering, 342,000 mummy AI updates, 68,400 expanded-disk player updates and more.
Yes. The original code, documentation and tooling are MIT licensed. Konami's game content is not included and is not covered by that license.