# Changelog

Player-facing changes for each release. The version is set in `CMakeLists.txt` (`project(gunball VERSION ...)`);
`tools/make_release.ps1` reads it from there and requires its matching section here.

## v0.2.0 (2026-11-28)

- **Ahead-of-time HuC6280 sound CPU (`tools/h6280/`):** Gun Ball's entire HuC6280 sound program (4,271 instructions
  across Bank 0 and Bank 6, compiled into 191 native C functions) now runs ahead-of-time as native compiled C with
  zero CPU interpreters linked into `gunball` or `gb_headless`. Verified cycle-for-cycle with 0 differences against
  MAME 0.289 (51,899 YM2151 writes, 637 OKI M6295 writes), across all 5 stages / 5 bosses / Bonus Slot / Ending
  (20,000 frames, 616,876 YM2151 writes, 10,180 OKI writes), and across save-state round-trips (`check_states.py`).

## v0.1.0 (2026-11-28)

The first release.

- **The arcade game, decompiled:** Gun Ball (Data East 1992, MAME's `gunball`, Japanese *Nitro Ball*), its entire
  68000 program decompiled into 27 readable C modules (100% of functions and work RAM named, 0 gotos) and running on
  a cycle-accurate model of the DE-0358-3 board (DECO 146, dual DECO16IC tilemaps, dual sprite chips with 50% alpha
  blending, HuC6280 sound CPU, YM2151 FM, and dual banked OKI M6295 ADPCM), verified frame for frame, pixel for
  pixel, and sample for sample against MAME 0.289.
- **Native SDL2 window:** upright 240 x 320 vertical (ROT270) display, 3:4 monitor or square-pixel aspect,
  integer/fit/stretch scaling, sharp or smooth filtering, and TATE vertical CRT presets (SCANLINES, ARCADE, PVM).
- **Side HUD gadgets:** rendered in Gun Ball's own 8x8 ROM font, showing live P1/P2/P3 stats, hi-score, credits,
  centered 2x speedrun timer, input visualizer, slowdown meter, hotkeys, and menu help.
- **3-player controls:** full keyboard and 3-gamepad bindings (remappable in the menu or `gunball.ini`), plus all
  10 arcade DIP switches.
- **ROM drag-and-drop:** drop `gunball.zip` and `nitrobal.zip` onto the first-run window (CRC-32 verified, direct
  ZIP/DECO 56/DECO 74 decryption in C11).
- **Board mode (`jn-00.17l` priority PROM):** switchable `MAME 1:1` vs `BOARD` accuracy mode, with Board mode
  driving sprite/playfield priority and 50% alpha blending directly from the physical `jn-00.17l` bipolar PROM.
- **Practice / Stage Select:** jump directly into any of the 5 stages (*Combat Field*, *Strange Football*,
  *Ghost Town*, *Aliens World*, *Space Station*) from the menu with customizable starting lives and balls.
- **Save states, replays, and high scores:** 8 deterministic save-state slots (`F5`/`F6`/`F7`), automatic replay
  capture and frame-exact playback, and persistent high scores (`gunball.hi`).
- **Video recording (`F12`):** full window view H.264 + stereo AAC MP4 (`1080p` / `1440p` via Windows Media
  Foundation or ffmpeg) or lossless uncompressed `BOARD AVI`.
- **Windows and Linux packages:** standalone 64-bit Windows (`.zip`, static CRT + bundled `SDL2.dll`) and Linux
  x86-64 (`.tar.gz`, glibc 2.35+ + bundled `libSDL2-2.0.so.0`) release archives with automatic GitHub Releases
  updates.
