Skip to content
FileoverPublic

About

Cycle-accurate static recompilation of After Burner (NES/Famicom, Mapper 68 / Sunsoft-4) using NESRecomp and SDL3.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

SkyBurner — After Burner (NES / Famicom) Static Recompilation

Language / Idioma: English (en-US, Primary) | Português (pt-BR, Secundário)

SkyBurner is a cycle-accurate static recompilation of After Burner (Japan) (En) (Mapper 68 / Sunsoft-4) built with NESRecomp v0.5.0 and SDL3 3.4.20 inside SkyBurner/.


Key Features

  • Verified Multi-Bank Static Recompilation: 6,630 harvested real execution seeds across all 24 stages and ending (11,621 compiled C instructions in 15 bank files), preserving exact stock parity by default.
  • Strict Pure (Original) vs. Enhanced ([ENH]) Startup Overlay: Opening the SDL3 app presents a startup mode selector (PURE (ORIGINAL) vs. ENHANCED). Selecting Pure shuts off all enhancements and completely locks out menus/hotkeys (F1, L1 + R1, rewind, cheats, display overrides) for authentic original Famicom hardware play; selecting Enhanced unlocks all [ENH] features, save slots, rewind, and the 4-tab overlay (F1 / L1 + R1). CLI flags --pure / --enhanced (alias --extended) launch directly.
  • 2-Jet Simultaneous Co-op ([ENH], Japan Revision Only): Independent Player 2 Wingman fighter (coop.h / coop.c) controlled via PlayStation controller P2 or P2 keyboard bindings, firing twin Vulcan cannons and homing missiles into the real $0400+ enemy array, using authentic F-14 sprites from Bank 7 ($CF86) + CHR-ROM, with configurable Shared / Independent lives policy.
  • 4K, 21:9 & 32:9 High-DPI Display Support ([ENH]): Window presets (Auto, 1080p, 1440p, 4K UHD 3840×2160, 21:9 2560×1080 / 3440×1440, 32:9 3840×1080 / 5120×1440) and aspect modes (1:1, 4:3, 16:9, 21:9, 32:9). Keeps the core gameplay viewport undistorted (256×240 integer-scaled or 4:3 NTSC) framed by Extended Horizon + Live Tactical Radar / P2 Wingman Wings (--no-wide-wings for black pillarbox).
  • Cross-Validated Hardware Fidelity (Mesen 2.2.1): Automated verification across 5 scenarios checking internal RAM, OAM, CIRAM, Palette RAM, pixel-by-pixel 256×240 framebuffer, and all 5 NES 2A03 APU channels.
  • Transactional Save States ("SBST" v3), Rewind & Replays ("SBRP" v2): 4 save slots (Slot 0..3) with live 64×60 thumbnails, in-memory rewind ring buffer (Backspace / L2), and deterministic replay verification.
  • PlayStation <-> Keyboard Controls & Visual In-Game Menu (F1 / L1 + R1): 4-tab SDL3 overlay (GAME, MODS, CTRL, DISP), single-action visual remapping with conflict swap, radial analog deadzone (0.30), scanlines, Mini HUD, and optional skyburner_settings.cfg / skyburner_controls.cfg persistence.
  • Reversible Gameplay Mods & Stage Select ([ENH], Japan Revision Only): Invulnerability (normal collisions + canyon $E14C), Infinite Lives, Infinite Missiles, and Stage Select (1..24), all disabled by default and guarded by ROM SHA-256 and cheats_config_hash().
  • Deterministic Rollback Netplay Core ("SBNP" v1): Protocol codec, strict handshake (cheats_config_hash(), ROM/build/SOCD/hooks checks), rollback/resimulation engine, online policy locks, and a 2-peer virtual network self-test (--headless --netplay-selftest).

Quick Start (Build, Run & Test)

cmake -S .\SkyBurner -B .\SkyBurner\build -DCMAKE_BUILD_TYPE=Release
cmake --build .\SkyBurner\build --parallel
ctest --test-dir .\SkyBurner\build --output-on-failure -V

Launch playable SDL3 host (shows Pure vs. Enhanced selector on open, or bypass directly via CLI):

.\SkyBurner\build\skyburner.exe --rom ".\rom\After Burner (Japan) (En).nes"
.\SkyBurner\build\skyburner.exe --rom ".\rom\After Burner (Japan) (En).nes" --pure
.\SkyBurner\build\skyburner.exe --rom ".\rom\After Burner (Japan) (En).nes" --enhanced --coop-2jets --aspect 21:9 --resolution 4k

Verify deterministic 180-frame stock parity or run the 2-peer rollback netplay self-test:

.\SkyBurner\build\skyburner.exe --rom ".\rom\After Burner (Japan) (En).nes" --headless --frames 180
.\SkyBurner\build\skyburner.exe --rom ".\rom\After Burner (Japan) (En).nes" --headless --netplay-selftest --frames 240

Default Controls (PlayStation Layout <-> Keyboard)

NES / Host Action Keyboard P1 Keyboard P2 ([EXT] 2-Jet) PlayStation Layout (P1 & P2) arcade_triggers Preset
Up / Down / Left / Right Arrow keys / WASD Keypad 8/5/4/6 / T/G/F/H D-Pad / Left Stick (radial deadzone) Same
A (Vulcan) X / J Keypad 1 / R Circle (alt R1) R2 (alt Circle)
B (Missiles) Z / K Keypad 2 / Y Cross (alt Square) R1 (alt Cross)
Start Enter / Space Keypad Enter / U Options Same
Select (In-Game Pause) Right Shift / Tab Keypad 0 / O Share/Create Same
Rewind (hold) Backspace None L2 L2
Open In-Game Menu F1 — L1 + R1 L1 + R1

Online Play Status

Live online play over LAN or the Internet is not yet available in skyburner.exe:

  • Already implemented and tested: Local 2-Jet Simultaneous Co-op [EXT] (coop.h / coop.c) and the deterministic rollback core (netplay.h / netplay.c), including "SBNP" v1 packet framing with CRC32, strict handshake matching ROM/build/cheats_config_hash(), online policy locks, rollback/resimulation, SYNC_CHECK desync detection, and the offline 2-peer virtual network harness (--headless --netplay-selftest).
  • Not yet implemented: Real UDP socket transport (LAN / Direct IP / WAN), interactive --host / --connect flags in the SDL3 loop, and peer clock pacing/latency HUD (note: NetplayHandshake.gameplay_mode and cheats_config_hash() already cover Extended/2-Jet lockstep verification once UDP transport is wired).

Documentation Index

Primary Documentation (en-US)

Secondary Documentation (pt-BR)

About

Cycle-accurate static recompilation of After Burner (NES/Famicom, Mapper 68 / Sunsoft-4) using NESRecomp and SDL3.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages