haroldo-ok

Sonic Md Gbc — Development skill for Claude Code

Development community

A W.I.P. vibe-port at half-scale of Sonic 1 from Sega Genesis to Nintendo Game Boy, Generated using Arena and polished using Claude.

How to install Sonic Md Gbc

This entry records only its repository, not the path inside it, so there is no exact command to give. Open haroldo-ok/sonic-md-gbc and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sonic Md Gbc does

A W.I.P. vibe-port at half-scale of Sonic 1 from Sega Genesis to Nintendo Game Boy, Generated using Arena and polished using Claude.

Alternatives in Development

  • Drift — Read the Genesis build phases document 90 ★
  • Ccr — CCR (Compressed Context with Retrieval) — recall the full original of context that great_cto compressed/filter 83 ★
  • Craft Notebook — Low-ceremony capture for ideas (half-formed, want to mature into stories), todos (concrete actions), and notes 52 ★

README

Sonic the Hedgehog — Complete Half-Scale (`0.5x`) Game Boy Color Port

A complete, zero-placeholder, **half-scale (`0.5x` width × `0.5x` height) Game Boy Color (`MBC5+RAM+BATTERY`, `2.0 MB` / `128` ROM banks + `32 KB` Battery-Backed SRAM)** port built from **`https://github.com/sonicretro/s1disasm`**.

Every single one of the **`946 / 946` non-`.git` files** in `s1disasm` is hashed (`SHA-256`), converted without placeholders (`placeholders_used = 0` in `generated/conversion_manifest.json`), compiled with **GBDK-2020 (`sdcc` / `lcc -msm83:gb`)** into `sonic.gbc` running at CGB `8.388 MHz` double speed (`cpu_fast()`), and verified end-to-end on emulated Game Boy Color hardware using **PyBoy** (`10` hardware E2E tests in `tests/test_e2e_emulator.py`, including the optional 30 Hz ROM pacing probe).


Summary of Latest Engineering Improvements

0. Title Screen, Cheats, Baked Decorations & Performance (2026-11)

  • Boot flow: SEGA -> Title Screen -> START = new game at GHZ1. Title cheat codes (table under Controls) are matched in parallel by screens_update_mode() (src/screens_and_ss.c); flags live in g_cheats (CHEAT_* in src/engine.h). Invincibility short-circuits sonic_hurt_or_kill() and counts as spinning for badnik/monitor contact; Infinite Lives reloads the act without decrementing g_lives; No Enemies drops badnik IDs in spawn_try_place_b127().
  • Baked decorations (tools/bake_decor.py, run by the regen pipeline after convert_all.py): static, purely decorative sprites (GHZ 0x1C bridge stumps, GHZ 0x44 edge-wall art, SLZ 0x1C lava-thrower bodies) are rendered from the original art, composited over the half-scale terrain cell at their object position (high-priority terrain stays in front), quantised to the zone BG palettes and written into unused BG tile slots (GHZ 33 new tiles, SLZ 6). generated/decor.c lists the overlay cells per act (column- and row-sorted); decor_apply_b() (src/decor_apply.c, bank 125) patches th