King's Valley II Level Editor: Build Your Own Pyramids
A tour of the free King's Valley II level editor: real cartridge art, room painting, Check, Test and portable levels. Build a pyramid and share it.
Introduction
King's Valley II (Konami, 1988) is one of the great MSX puzzle-platformers: soul stones to collect, mummies to dodge, walls to dig through and an exit door that only opens when the pyramid is cleared. My open-source port, built with MonoGame, Nez and Gum, plays the original 60 stages of both the MSX1 and MSX2 cartridges, plus the 20 player-designed challenges of the Edit Contest edition.
The original cartridge already had an EDIT option on its title screen, and a later Edit Contest cartridge collected stages designed by players. Version 1.2.0 of the port brings that idea to the desktop: a full level editor that draws your stages with the cartridge's own artwork, checks them for mistakes and lets you play them right away.
This post is a complete tour: every feature, with GIFs captured from the editor itself.

Start From Any Stage of the Game
From Game opens every stage of the installed cartridges (MSX1 / Original, MSX2 / Original and MSX2 / Contest). Each stage is drawn with its real rooms, soul stones, sarcophagi, enemies and items, at their room-map positions.
Three views help you find the stage you want:
- Grid: every stage of the cartridge at a glance.
- Cards: twelve per page, with the pyramid and how many rooms, stones and enemies each stage has.
- Large: two per page, so tall stages with stacked rooms stay readable.
Loading a stage creates an editable copy. The game's own stages are never changed.

Full Stage or One Room at a Time
Full stage shows every connected room side by side, exactly as they sit on the room map. You can paint across room borders, zoom with the wheel around the pointer and pan with Space + drag. Room view isolates one room at a native, pixel-perfect integer zoom.
Six Pyramids, Two Cartridges
The Pyramid setting switches between the six native pyramid themes: murals, terrain and palette all come from the extracted cartridge. Graphics switches the same stage between the MSX1 and MSX2 artwork, keeping your edits and your undo history.

Paint Rooms
Start a New level and paint with the Tile Palette: Solid wall, Soft block (the blocks Vick can dig) and Ladder. Use Brush for strokes, Fill for connected areas and Select to copy and paste a region. A whole stroke is a single Undo step.

Place Everything the Game Has
The palette groups every object of the original game:
- Objects: Vick's start, the exit door and up to 16 soul stones.
- Enemies: white and gold mummies in their sarcophagi, and the hopping guard, drawn as the crouched statue it first appears as in the ROM.
- Tools: pickaxe, drill, hammer, shovel, knife and boomerang.
- Mechanisms: rotating doors, traps, falling walls, floor traps, push blocks and temporary ladders.

Drag to Rearrange
With Select, just drag any object to a new cell. Vick, the door, stones, items, enemies and mechanisms all move this way and stay inside their room. A solid mechanism takes its wall cells along, and Undo puts everything back. The Eraser (or the right mouse button) removes whatever sprite covers the cell.

Check Before You Play
Check (F7) runs the level validator and jumps to each problem, outlining it in red: no soul stones, too many, Vick inside a wall, a buried stone or item, duplicates, or a room that does not connect to any other. All 140 cartridge stages pass it. Test refuses a level that cannot be finished, with Show problem and Test anyway options.

Rooms and the Stage Map
Click an empty cell in the Room Map to add a room; a level can have up to 64. PageUp / PageDown step through rooms, Delete room removes one (with Undo), and the Stage map under the Inspector shows the whole level with its real artwork, updating after every edit.

Test It Instantly
Press Test (F5) and you are playing your level, with the game's real rules, music and enemies. Press Escape and you are back in the editor with your document, history, zoom and camera exactly where you left them.

Save and Share
Save As writes a portable .kv2level file. It contains only your level: no ROM, no artwork, no audio. Anyone with the same cartridge extraction can open it. Ten local Slots keep quick saves, and a recovery copy is written every 15 seconds while you edit.
Under the Hood
For developers, a few design notes:
- All editing lives in
StageDocument, a UI-free class inKingsValley.Corecovered by unit tests. The editor scene only turns input into document calls. - Room previews are assembled at runtime from the native ROM tile data. There are no PNG backgrounds in the project.
- The editor UI is written with Gum and renders text at physical resolution, so it stays sharp and responsive when maximized on a 4K monitor.
- The trailer and these GIFs were captured from a scripted, deterministic run of the editor, so they show the real program, frame by frame.
What Comes Next: It Depends on You
The editor is ready for you to build pyramids today. If people use it, two features are next on my list:
- Level packs: bundle a full campaign of your stages into one file, with a title and author, so sharing a set of levels is a single download.
- An online level server: publish your levels from inside the game, browse what others made and play their pyramids with one click.
Both depend on one thing: people actually making levels. So build something, share your .kv2level files and tell me about them. That is what decides how far the editor goes.
Conclusion
The King's Valley II level editor turns the cartridge's EDIT option into a modern tool: real artwork, every object of the game, drag-and-drop editing, a validator and instant play-testing.
- Download version 1.2.0 and the source code on GitHub (external).
- Read the level editor guide (external).
A supported, user-supplied cartridge ROM is required. King's Valley II is © Konami; this is a non-commercial fan project.
Comments
Have a question, or found an issue with the code? Drop a comment below — I read and reply to every one.