Skip to content
CW
Navigation

Language

Navigation

Back to Blog
05 Dec 2026 6 min read 56 Views
King's Valley II Level Editor: Build Your Own Pyramids

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.

The King's Valley II level editor with a room being painted

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.

Browsing the cartridge stages in Grid, Cards and Large views

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.

Switching pyramid themes and MSX1 / MSX2 graphics

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.

Painting walls, soft blocks and ladders in a new room

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.

Placing Vick, the exit door, soul stones, enemies and tools

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.

Dragging a soul stone, Vick and a mummy to new positions

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.

Check finds a soul stone buried in a wall

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.

Adding rooms and viewing the whole stage

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.

Play-testing the new level

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 in KingsValley.Core covered 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:

  1. 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.
  2. 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.

A supported, user-supplied cartridge ROM is required. King's Valley II is © Konami; this is a non-commercial fan project.

Cezar Wagenheimer

Written by

Cezar Wagenheimer

Share this article

Comments

Have a question, or found an issue with the code? Drop a comment below — I read and reply to every one.

Loading comments…

Leave a comment

Keep exploring

Deploy // Reconectando
Reconectando ao Servidor

Uma nova versão do ecossistema está sendo aplicada. A conexão será restabelecida automaticamente em instantes.