Super Dodge Ball Recompilation

Super Dodge Ball (NES, 1989, Technōs Japan) recompiled to native C and running on your PC. Also available as Nekketsu Koukou Dodgeball-bu (Famicom, 1989) — the Japanese original, same engine, same mods, its own release builds. Both cartridges are fully playable — title, menus, team select, and full matches end to end — throws land, damage numbers show, HUD and menus render. All enhancements are optional, off-by-default mods. Enhancements included like: widescreen, flicker fix, overclock, filters, and cheats replays. Also includes the first english translation of Nekketsu Koukou Dodgeball-bu ever.

README

Super Dodge Ball Recompilation

Super Dodge Ball title screen, recompiled build
License: PolyForm Noncommercial Status: Fully playable Windows · Linux

Super Dodge Ball (NES, 1989, Technōs Japan) recompiled to native C and running on your PC. Also available as Nekketsu Koukou Dodgeball-bu (Famicom, 1989) — the Japanese original, same engine, same mods, its own release builds.

Not an emulator. The cartridge's 6502 machine code is translated to C at build time and executed natively against a cycle-accurate model of the console. It boots, it plays, and its memory state is byte-for-byte identical to an accurate emulator's from power-on through team select.

Both cartridges are fully playable start to finish — title, menus, team select, every round and the level-switch screens — throws land, damage numbers show, HUD and menus render. All enhancements are optional, off-by-default mods.

You bring the ROM. Nothing from the cartridge ships here.

Table of Contents

Playableboth cartridges, start to finish — title, menus, team select, every round, and the stage-clear and level-switch screens; throws land, damage numbers show, HUD and menus render
Verified againstMesenCE 2.2.1 — 400 frames of RAM, OAM, palette and CIRAM byte-exact from boot · blargg CPU suite 25/25 · JP build verified the same way (600 frames, plus all five widescreen gates)
Mods6, all off by default — flicker removal, widescreen (with margin sprites), PPU overclocking, CRT/composite, upscaler, and the highly experimental diorama
Audioband-limited step synthesis by default; the legacy box average is one env var away (SDB_AUDIO_SYNTH=legacy)
Engine patches6 — two opt-in diorama profile flags, the opt-in band-limited audio synthesizer, the game-UI overlay hook, the launcher's Language row, and the controller clock during the extra blank scanlines. The three this port carried earlier are upstream now (PRs #66, #67, #69)
Languagethe Japanese build ships a fan-made English translation — now complete for every text screen, in both the story mode and the two-player menus; only the title logo and the game's baked-in graphics stay Japanese. It is the only English the Japanese cartridge has ever had (Language). Opt-in, default Japanese
Open bugsnone known — one gate caveat below

Built with NESRecomp by Matthew Stanley — framework questions belong upstream, game-specific issues belong here. This port is in active development; expect rough edges.

Fan project. Unaffiliated with and not endorsed by any rights holder — see Legal and project notices. No game content is included; you supply your own legally obtained ROM. Built with substantial AI assistance — see the AI disclosure.

Features

All enhancements below are optional and off by default. With everything off, the build is byte-identical to the unmodded game.

FeatureWhat it doesBoth cartridges?
Remove Character FlickerFixes all three causes of sprite flicker (64-slot budget, object culling, damage/position number emitters) so characters stay whole✅
Widescreen16:9 / 21:9 / 32:9 — 426 / 560 / 854 columns. Reveals the 8 PPUMASK-clipped columns and draws the players the NES culled off-screen✅
PPU OverclockingAdds blank scanlines before the NMI so the guest gets more CPU time per frame and runs faster✅
CRT / Composite FilterPhosphor mask, composite bleed, halation, bloom — the picture through a CRT✅
Pixel-Art UpscalerEPX, MMPX, or xBR at 2×/3×/4× — scales the picture without inventing colours (xBR blends)✅
Diorama (2.5D) ⚠️Highly experimental, not recommended for play — tilted-floor voxel view of the machine's own picture through the engine's voxel renderer✅
CheatsRetroArch .cht files — freeze RAM, conditional writes, Game Genie / Pro Action Replay spellings✅
ReplaysRecord a play session to a self-contained .sdbdemo and replay it later✅
Fan Translation (JP only)Runtime Japanese→English: kana font patched to Latin, on-screen text substituted at frame endJP only

Both Cartridges

Super Dodge Ball (USA)Nekketsu Koukou Dodgeball-bu (Japan)
ROMroms/Super Dodge Ball (USA).nesroms/Nekketsu Koukou Dodgeball-bu (Japan).nes
Build./build_and_run.sh → build-cycle/./build_and_run_jp.sh → build-jp/
Payload CRC-32689971F962C67984
File SHA-25636fe18ef…ab78baad…
TranslationAlready EnglishFan English (opt-in, default Japanese)
Cheatscheats/Super Dodge Ball (USA).chtcheats/Nekketsu Koukou Dodgeball-bu (Japan).cht

Every mod works on both cartridges. Hook sites resolve by content CRC-32, not by address — so one codebase serves both. The launcher verifies the ROM this binary was built from: build-cycle/nes_game + USA ROM = "ROM verified"; build-cycle/nes_game + JP ROM = LNG_ROM_WRONG.

Verification

Why you can trust this build:

  • Co-simulation against MesenCE: 400 frames of RAM, OAM, palette and CIRAM byte-exact from boot through team select (TAS differential harness). Pixels are informational only — state bytes decide.
  • blargg CPU test suite: 25/25 — 20 RAM-text PASS (including 12-jmp_jsr, the JSR/RTS case a less careful runtime fails) plus 5 screen-confirmed PASS.
  • Native share over a match: 99.8% — the guest cannot tell: --frame-log over 3000 frames on four vectors is byte-identical between seeded and unseeded builds, cycle count identical to the digit.

State bytes decide; pixels don't. Cross-renderer RGB never matches exactly because palette emulation differs.


Playing

Releases

Prebuilt binaries are published on the releases page. The 1.0.0 release provides both cartridges — the USA original and the Japanese Nekketsu Koukou Dodgeball-bu:

CartridgeFile patternWhat it needs
Super Dodge Ball (USA)super-dodge-ball-recomp-1.0.0-*.AppImagenothing — one file: chmod +x it and run it
Super Dodge Ball (USA)super-dodge-ball-recomp-1.0.0-*.tar.gzSDL2 and OpenGL
Super Dodge Ball (USA)super-dodge-ball-recomp-1.0.0-*.zipnothing — unpack and run SuperDodgeBallRecomp.exe
Nekketsu Koukou Dodgeball-bunekketsu-koukou-dodgeball-bu-1.0.0-*.AppImagenothing — one file: chmod +x it and run it
Nekketsu Koukou Dodgeball-bunekketsu-koukou-dodgeball-bu-1.0.0-*.tar.gzSDL2 and OpenGL
Nekketsu Koukou Dodgeball-bunekketsu-koukou-dodgeball-bu-1.0.0-*.zipnothing — unpack and run SuperDodgeBallRecomp.exe

No ROM is included, and none is needed to install. Start the game and the launcher asks for your own copy, then verifies it against the checksum compiled into the binary. The USA build wants Super Dodge Ball (USA); the Japanese build wants Nekketsu Koukou Dodgeball-bu (Japan) — same engine, different cartridge, each binary verifies its own.

Where the launcher keeps its settings depends on how you installed it:

InstallSettings, mod state and the picked ROM path
Tarball / Windows ZIPnext to the executable, in the folder you unpacked it into
AppImagein a .super-dodge-ball-recomp folder next to the .AppImage
Flatpak~/.var/app/org.saftle.SuperDodgeBallRecomp/data/super-dodge-ball-recomp/

Two things worth knowing about the packaged builds:

  • The AppImage writes its settings next to itself, in a .super-dodge-ball-recomp folder. Delete that folder to reset the launcher to its defaults.
  • The launcher shows project-original box art. Replace assets/img/boxart.tga with a 24-bit TGA of your own to change it. The retail cover is not shipped: it carries the Nintendo Seal of Quality and the line "Licensed by Nintendo for Play on The Nintendo Entertainment System", and this program is neither licensed nor endorsed by Nintendo.

Building it yourself instead? Quick start below.

Quick start

# 1. Drop your legally obtained ROM here:
#      roms/Super Dodge Ball (USA).nes
#      SHA-1 75dad8b461864ddd396c75bdb68378bb2bc47d99 · CRC32 9400BA7F
#    — or the Japanese original:
#      roms/Nekketsu Koukou Dodgeball-bu (Japan).nes
#      SHA-1 a18badb09635b1d90ec574defc2742fb1d9ca7d3 · CRC32 FECA5C1A

# 2. One-time setup: submodules, engine, patches, MesenCE, first build
./setup.sh

# 3. Build and play (either cartridge; the Japanese one is a separate build)
./build_and_run.sh          # USA
./build_and_run_jp.sh       # Japan (Nekketsu Koukou Dodgeball-bu)

The window opens on the launcher — a settings dashboard from recomp-ui where you set display, audio and per-player bindings before the game starts. Press Play, or Escape to skip straight in. Once the game is running, Escape opens the in-game menu (display, audio, save states, quit).

setup.sh needs a C++ compiler, make, SDL2 development headers and xvfb-run. It prints exactly what is missing and stops rather than failing later.

Just here to play, or curious how it works? Pick your route.

What this recomp adds

Six mods, all in the launcher's Mods screen, all off by default. With all six off the build is byte-identical to the unmodded game. Cheats are a separate thing and are reached differently — see Cheats below.

And this project ships a fan-made translation of the Japanese cartridge. Nekketsu Koukou Dodgeball-bu — the original Japanese game — has no English release, so the English shipped here is written for this project; it is a translation mod rather than a different game, and its text translation is complete — every story-mode and two-player screen, including both columns of the VS team-select screen and both match-HUD columns; only the title logo and the game's baked-in graphic tiles remain Japanese (see Language and docs/plan.md 27). Support for both cartridges is what the rest of this document describes; the translation is an addition on top of it.

They are ordinary mod packages — manifests in mods/packages/, selectable and deselectable at runtime. Nothing is patched into your ROM, and each section below says exactly what it costs the guest: widescreen does not touch the guest at all, the flicker mod makes it emit sprites it had dropped (which shifts its cycle count by a hair without changing how the game plays), and overclocking deliberately changes console timing.

Replays

In-game menu → Replays → Browse Replays, or --demo-record / --demo-play

Record a play session to a self-contained .sdbdemo file and replay it later from the same point, with the same inputs. The capture stores the machine state at recording start (the RNG anchor), the input schedule, the mod configuration and metadata — no screenshots, no trace, no build environment, no external tools.

Three surfaces:

SurfaceHow
In-game menuEscape → Replays → Browse Replays opens an ImGui overlay that lists .sdbdemo files from replays/ beside the executable. Start/Stop Recording, Pause, Resume and Stop Watching are menu rows in the same section.
Command line--demo-record NAME starts recording from power-on. --demo-play FILE loads and replays a .sdbdemo. --demo-list lists available captures and exits.
TCPdemo_start / demo_stop / demo_load / demo_pause / demo_resume / demo_stop_playback / demo_browse / demo_state — for scripts and tools/play_record.sh-style control.

Replay feeds inputs through cyc_session_logical_input() and cyc_set_controller() — both are needed because the game reads controllers at $4016/$4017 hardware registers, not the logical input buffer.

Why this does not replace tools/play_record.sh

Not a replacement for tools/play_record.sh. The play-record tool captures per-frame screenshots, SDB_TRACE output, and two anchor+probe save states over TCP; the demo system captures only inputs and a single state. The screenshot and trace captures are the ground truth for the margin tools (margin_track.py, anchor_gate.py, bounds_gate.py, layer_order.py, etc.), and those tools read trace.log directly — they cannot run on a .sdbdemo alone. See docs/plan.md item 26.

Remove character flicker

Mods screen → Display

Super Dodge Ball is notorious for flickering characters, and the usual fix does not apply to it. Every emulator's "remove sprite limit" targets the PPU's 8-sprites-per-scanline hardware limit. This game never gets that far — it throttles its own sprites, three separate ways, and in the worst of them the missing tiles are never computed at all.

  1. Half a character. OAM has 64 slots and a character takes 8, so a full match overflows. The sprite builder hits a hard budget and stops emitting — 79% of match frames have someone missing their lower body. This keeps emission going and draws every sprite the game produces.
  2. A whole character, gone 4 frames in 9. The game builds a display list each frame and deliberately leaves one object off it, rotating which object. Three separate gates on that decision are overridden.
  3. The numbers. The floating damage digits and the team-select position digits come from two sprite emitters shaped differently enough that nothing had ever captured them — so the one thing on screen that tells you a hit landed was missing entirely.
The measurements, and what it costs the guest

Measured on a match, counting non-background pixels inside a character's box:

beforeafter
body ink in the truncated character's region, frames 440–469stdev 8.7 (flickering)0.8 — and 0.0 for the character itself
culled character's box, frames 700–909ink 543–741, stdev 55.0, missing on 106 of 210 framesink 677–741, stdev 16.6, 0 frames still culled
damage numbers, frames 895–1400never captured108 / 108 frames steady

What it costs. Game logic is untouched: nothing in the game reads sprite OAM back, and sprite slot 0 never differs on any of 910 measured frames. The truncation half is presentation only — identical cycle count, two bytes of the OAM shadow page differ. The culling half is not, and the honest wording is that making the game emit an object it had dropped is extra work the guest then has to do, so its cycle count and NMI phasing shift by a couple of frames and OAM differs on 484 of 910 frames. Nothing in the game can observe any of it — but "cannot observe" is not "byte-identical", and the picture (CIRAM) is identical on 899 of 910.

Widescreen

Mods screen → Display

16:9 / 21:9 / 32:9 — 426 / 560 / 854 columns, or fit the window. The extra columns show real court, and the players the NES could not display. Not upscaled: the same chunky pixels on a wider canvas.

Why this is not wideNES

This is deliberately not wideNES. wideNES warps a framebuffer the NES has already produced, so it can only ever show you what the machine already put on screen — and it ignores sprites entirely, which its own maintainer names as the reason it never shipped. This game's world is different: it is entirely resident in the PPU's nametable before the frame starts (measured byte-identical from frame 450 to frame 900), so a margin pixel can be read out of guest state — scroll, world column, tile, attribute, pattern byte, palette — exactly the way the PPU resolves it.

And the sprites are there too. Super Dodge Ball places every sprite in a 16-bit screen coordinate, computes the tile, the flips, the palette and both halves of the position — and then discards it by truncating one byte, because it lives in a 256-column viewport. Measured over 61 match frames, 40% of the objects on the pitch are off-screen at any moment. Widescreen recovers that placement and draws it in the margin, facing, animation frame and palette intact — something a framebuffer warp can never do, because the guest still knows where the object is.

Two options:

OptionValues
Aspect ratiofit (default) · 16:9 · 21:9 · 32:9 · stockfit follows your window's shape. Choose an explicit ratio if you want the width to be independent of the window.
Camerafollow (default) · lockedSee below.

Turning it on also reveals the 8 blank columns at the left that the game hides with PPUMASK — blank in every one of 2112 measured frames. That is not a second toggle. The same compositor draws the court, the margins and those columns, and the combination a separate toggle would permit — widescreen on, reveal off — is a wide frame with a black band at its edge, which is precisely the artefact the feature exists to remove. SDB_OVERSCAN=0 in the environment forces it back for measurement only.

Camera: locked. locked pins the canvas to the court and lets the game pan behind it. At 21:9 and 32:9 the whole court is visible from every camera position the game can reach, so panning would add motion and no information; at 16:9 it centres the court and loses 7 columns at each end rather than whichever end the ball happens to be near. follow is the other option.