fix(sp): revert dungeon to legacy renderer + fix splash (working game restored)

The render-kit SP dungeon shipped without a player-centered camera or entity sprites,
so it drew the whole level tiny in a corner with a red-dot monster. Disable it and fall
back to the proven legacy renderer (original tiles, real monster, centered view) until
the kit has a camera + sprites. RK.SPGame/spRenderPicker kept but dormant (one flag to
re-enable). Splash legend: draw every icon (incl. the player) as a uniform grid tile —
no avatar overlay — so the four rows align AND the player shows the original hero tile.
This commit is contained in:
jwinterm
2026-07-12 10:30:19 -04:00
parent 1325b49b42
commit cc0e092c1d
3 changed files with 20 additions and 41 deletions
+5
View File
@@ -30,8 +30,13 @@
doc().head.appendChild(s);
}
// Disabled until the single-player render-kit path (RK.SPGame) has a camera + entity sprites.
// Keeping the module wired so re-enabling is a one-line flip.
var ENABLED = false;
function build() {
var h = host();
if (!ENABLED) { if (h) h.classList.add('hidden'); return; }
if (!h || !RK.RENDER_MODES || !RK.SPGame) return;
ensureStyle();
h.innerHTML = '';