Repository navigation
Releases
v1.1.0: Dungeon Crawler MD: Implement full screen and NPCs.
Dungeon Crawler MD (v1.1.0) — NPCs & Full-Screen 256×192 View
Dungeon Crawler MD reaches v1.1.0 across two committed milestones: first porting NPCs, branching dialogue, and persistent quest flags (edca9d4), and then expanding the 3-D view to a full-screen 256×192 layout (128×96 logical pixels at 2×2 scale) with 48-row skies, unrolled per-depth wall scalers, four-VBlank 3 KiB DMA uploads, and full regression coverage (9af988d).
💬 NPCs, Branching Dialogue & Quest Flags (edca9d4)
-
Four NPCs & Three-Level Quest: Ported the SMS script bytecode interpreter (
src/script.c), quest flags, and four characters (rewording a Keep guard hint to match the expanded32×32Keep layout): -
Old Guard (Keep): Grants 2 potions initially, then gives updated hints.
-
Sister Mara (Crypt): Prays for Brom; returning his locket rewards full healing and an elixir.
-
Brom (Mines): Gives his locket for Mara and offers to blast a shortcut to the rock golem for 30 gold (handling short gold and declining the deal).
-
Sir Cedric's Ghost (Catacomb Stairs): Heals the party, gives 3 potions, and fades away.
-
64×64 NPC Sprites & Build Fixes: Redrew all four NPCs at
64×64(refining facial eyes/mouth and giving Mara warmer skin so she doesn't read as a skull at distance;npcs_before_after.png,npc_conversations.png). Fixed a 68000 odd-address 16-bit read crash in dialogue branches, tracked high-res art dependencies in the build, and madesrc/gen/audio_tab.can explicit target so clean source archives build reproducibly. Save format changed to store quest progress (older saves are not loaded).
🖥️ Full-Screen 256×192 View, Scalers & Upload Pipeline (9af988d)
-
Full-Screen Layout (
fullscreen_view.png): Expands the 3-D view to256×192(128×96logical pixels in2×2blocks, doubling vertical detail over the old128×96/1×2window): -
HUD & Overlays: Four-row status strip beneath the view (dungeon name, HP, MP, level, keys, items, gold, and one-line control hint); floating minimap in the top-right corner; bottom bar for messages, menus, and NPC dialogue that clears when dismissed; framed status panel over the view.
-
Automap, Logos & Target Arrow: Automap renders full-screen with
8×8-pixel cells (4×4logical) and hides the minimap until exit; title and ending logos are doubled in size; battle target arrow sits above the targeted monster. -
48-Row Skies, Pose Bank Fitting & ROM Budget: Skies were redrawn natively at 48 rows tall; because doubled floor lists exceeded
32 KiBper pose bank, sprite scale tables (5 KB) moved to a shared bank so each pose fits in ~25.7 KBand sprites use half as much ROM space. After trimming half of the new wall routines and reorganizing data, ROM sits at1.63 MB(safely clear of the2 MBSRAM boundary). -
Rendering Speed & Fixes (~
9.3 fpsTurning /8.9 fpsWalking): Moving to 1-byte logical pixels and24 KBview buffers initially ran at ~8 fps; eliminating the redundant per-frame buffer clear (floors, ceilings, and walls overwrite every pixel) and generating dedicated per-depth wall scalers lifted performance to 9.3 fps turning and 8.9 fps walking. Fixed a 6% music tempo slowdown by relying on the music driver's built-in protection rather than pausing it across four-VBlank3 KiBDMA uploads, and fixed a top-line odd/even buffer pairing glitch so every scanline pairs cleanly.
🧪 Verification
- Full Test Suite Passing: Verified pixel-exact parity between the 68000 assembly kernels and plain-C renderer across 60–127 test views (including half-detail motion frames), full quest walkthrough with all NPC conversations and flags, shop/save/reset/continue, audio pitch/loop/tempo/SFX checks, and identical ROM output from a clean zip build.
Full Changelog: v1.0.0...v1.1.0
v1.0.0: Dungeon Crawler MD: Port to Sega Genesis / Mega Drive using Claude.
Dungeon Crawler MD (v1.0.0) — Sega Genesis / Mega Drive Port & 7-Round Upgrade
Dungeon Crawler MD is a 1.7 MB Sega Genesis / Mega Drive port of Dungeon Crawler SMS with battery-backed SRAM saves, built and upgraded across seven iterative milestones—expanding viewport resolution, quadrupling texture and sprite detail, migrating audio to SGDK's XGM2 driver, and quadrupling dungeon map area from 16×16 to 32×32.
🚀 Seven-Round Port & Upgrade Progression
-
Core Genesis Port & 68000 Assembly Kernels: Rewrote platform code and the ray-cast renderer for the Motorola 68000 and Genesis VDP with battery-backed cartridge saves, raising frame rate from ~11 fps in C to 15.6 fps via hand-written assembly hot paths.
-
Viewport & Lighting Upgrade: Doubled horizontal 3-D resolution to 128 columns with hardware line-doubling, rendering transitional movement/turn frames at half detail for smooth motion and adding per-dungeon lighting tints.
-
SGDK XGM2 Audio: Converted all soundtrack tunes to VGM format for playback via SGDK's XGM2 driver (FM synthesis melodies/chords + PSG drums) alongside digitized PCM sound effects.
-
Floor Assembly Bug Fix & Reference Parity Check: Fixed a right-edge blue-stripe artifact during movement caused by an uncleared register in the floor-drawing assembly routine, adding an automated parity check against a plain-C reference renderer.
-
4× Texture Resolution Overhaul: Redrew all environment art at quadruple pixel count rather than upscaling—walls from
32×32to64×64, floors and ceilings from16×16to32×32, and skies from64×24to128×24—using a reorganized storage layout that preserved ROM size and improved speed. -
64×64 Sprite Redraw: Redrew all 35 sprite frames (monsters, merchant, items, and decorative scenery) at
64×64resolution with visual fixes, bringing the ROM to1.6 MBwith zero frame-rate penalty. -
32×32 Dungeon Expansion & Rebalancing: Expanded every dungeon to
32×32(four times the area), retaining each original16×16layout in a corner surrounded by three new wings. Progression routes now incorporate additional keys, a second lever, and a locked boss door, adding 53 monster groups and items, 15 chests, and 4 healing springs, alongside updated automap/SRAM save layouts and retuned leveling and boss stats (bringing final ROM size to1.7 MB).
🧪 Verification, Performance & Deliverables
-
Automated Emulator Suite: Validated after every milestone with a scripted full-quest playthrough (19 battles from the Keep through the Lich King and ending), plus dedicated tests for shops, save/continue, console reset, audio pitch/timing, C-vs-assembly renderer parity, and ROM header integrity.
-
Frame Rate: Holds at ~14 fps in the expanded
32×32dungeons with64×64textures and sprites. -
Deliverables: Final ROM, source repository with full per-round git history, dungeon map overview, and updated
READMElocated in/home/claude.
Full Changelog: https://github.com/haroldo-ok/dungeon-crawler-md/commits/v1.0.0