r/monogame • u/wagenheimer • 4h ago
King's Valley II remake (MonoGame + Nez + Gum) now has a full level editor
My open-source remake of King's Valley II (Konami, 1988, MSX) just reached v1.2.0 with a built-in level editor. Trailer:
Stack and a few things I learned:
MonoGame DesktopGL + Nez for scenes and rendering, Gum for all of the UI (Forms controls, .gusx screens).
All editing lives in a UI-free StageDocument in the core library, with unit tests; the editor scene only maps input to document calls.
Rooms are assembled at runtime from the cartridge's native tile data: no PNG backgrounds, PointClamp at integer zoom.
The editor UI draws at physical pixels (Gum camera zoom 1, font size times UI scale). Rendering it through a zoomed camera made Gum re-rasterize fonts every frame and froze the window when maximized on 4K.
The trailer and GIFs come from a scripted, deterministic run of the real editor (fixed 1/60 s step, synthetic input, PNG frames).
Write-up with GIFs: https://wagenheimer.com/blog/kings-valley-ii-level-editor
Source (Windows, Linux, macOS builds): https://github.com/wagenheimer/kings-valley-2
A user-supplied ROM is required; no ROMs are included.
Happy to answer questions about Nez or Gum.
