Skip to content

Releases

v1.1.0: Dungeon Crawler MD: Implement full screen and NPCs.

Choose a tag to compare

@haroldo-ok haroldo-ok released this 02 Dec 09:06
image image image image image

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 expanded 32×32 Keep 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 made src/gen/audio_tab.c an 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 to 256×192 (128×96 logical pixels in 2×2 blocks, doubling vertical detail over the old 128×96 / 1×2 window):

  • 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×4 logical) 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 KiB per pose bank, sprite scale tables (5 KB) moved to a shared bank so each pose fits in ~25.7 KB and sprites use half as much ROM space. After trimming half of the new wall routines and reorganizing data, ROM sits at 1.63 MB (safely clear of the 2 MB SRAM boundary).

  • Rendering Speed & Fixes (~9.3 fps Turning / 8.9 fps Walking): Moving to 1-byte logical pixels and 24 KB view 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-VBlank 3 KiB DMA 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.

Choose a tag to compare

@haroldo-ok haroldo-ok released this 29 Nov 10:47
f228e04
image image image image image

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

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

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

  3. 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.

  4. 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.

  5. 4× Texture Resolution Overhaul: Redrew all environment art at quadruple pixel count rather than upscaling—walls from 32×32 to 64×64, floors and ceilings from 16×16 to 32×32, and skies from 64×24 to 128×24—using a reorganized storage layout that preserved ROM size and improved speed.

  6. 64×64 Sprite Redraw: Redrew all 35 sprite frames (monsters, merchant, items, and decorative scenery) at 64×64 resolution with visual fixes, bringing the ROM to 1.6 MB with zero frame-rate penalty.

  7. 32×32 Dungeon Expansion & Rebalancing: Expanded every dungeon to 32×32 (four times the area), retaining each original 16×16 layout 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 to 1.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×32 dungeons with 64×64 textures and sprites.

  • Deliverables: Final ROM, source repository with full per-round git history, dungeon map overview, and updated README located in /home/claude.

Full Changelog: https://github.com/haroldo-ok/dungeon-crawler-md/commits/v1.0.0