A native PC port of Blades of Steel (NES, USA), built with NESRecomp. The game's own 6502 code is recompiled to C and runs natively, cycle-accurate, at the speed of the real console, with additions made to be easy on the eyes:
- Wide view. More of the rink to the left and right (Wide: 64 pixels each side, Wider: 96), with every player, the goalies, the referee and the puck drawn, including the ones the NES leaves off its screen. It stays wide from the moment the teams skate out of the tunnel, through the period breaks, the shootout and the winners' celebration.
- Up to 240 pictures a second. In-between pictures move the rink and the players a fraction of a pixel each, drawn on the graphics card, for high-refresh and FreeSync / G-Sync monitors. Players and the puck glide between the game's positions.
- Eased camera. The game's camera jumps 2 to 7 pixels a frame, stutters and stops dead on long shots. The camera now glides, turns gently and eases into the ends of the rink (Calm, Calmer, Slowest).
- No sprite flicker. Every sprite is drawn every frame, and overlaps always draw the same way (lower on the screen in front).
- Gentle puck-carrier highlight. Instead of flashing bright white ten times a second, the player with the puck gets a calm, steady glow (gold, or one of five other colours); a slow pulse, a faint flash, the original flash or no highlight are one menu row away.
- Shorter periods if you like: 5:00 by default (the game's 20:00 takes 2:40 of real time per period; 10:00 and 15:00 too).
- Edge crop, an in-game settings menu, save states, two players.
Apart from the period length, everything changes only the picture; the game itself runs exactly as on a NES. Each feature can be switched off in the menu.
You need your own ROM. This repository and the AppImage contain no game
data. You supply a dump of Blades of Steel (USA); the program checks it is
the right one before it runs (the tested dump's SHA-1 is
26ab09e19d3f78d749443c116f29ffdd4186231d).
Get BladesOfSteelRecompiled-x86_64.AppImage from the
Releases page, then:
chmod +x BladesOfSteelRecompiled-x86_64.AppImage
./BladesOfSteelRecompiled-x86_64.AppImageThe first time, the launcher asks for your ROM. Needs a recent 64-bit
distribution with SDL2 installed (it was built on CachyOS; Arch, Fedora 41+,
Ubuntu 24.10+ and similar should work). Settings, the ROM's location and the
wide view's rink memory are kept in ~/.local/share/BOSRecomp. The rink
memory fills in as you play (the first faceoffs may show the far ends
mirrored from the near ones).
A fresh install starts with the eye-friendly setup on, including the Wide view, except Pictures per second, which starts at 60 because only high-refresh monitors benefit from more. In game, press Escape (or the right shoulder button) for the menu:
| Menu | Setting | Recommended |
|---|---|---|
| Smooth motion | Pictures per second | Your monitor's refresh rate: 240 on 240 Hz, 120 on 120/144 Hz, 60 (off) on 60 Hz |
| Smooth motion | Smooth camera | Slowest (Calm or Calmer if you like it closer to the game) |
| Smooth motion | Player glide | Smooth (Low lag if you are sensitive to delay) |
| Picture | View | Wide (Wider shows more; Normal is the NES's own) |
| Picture | Player flashing | Steady glow |
| Picture | No sprite flicker | On |
| Game | Period length | 5:00 (20:00 is the game's own) |
| Graphics | VSync | Off with FreeSync/G-Sync (on Linux/Wayland, also set the desktop's Adaptive sync to Always); On without |
Settings are saved in config.ini beside the program (with the AppImage:
~/.local/share/BOSRecomp/bin/config.ini). Change it only while the game is
closed: the game writes its settings when it quits.
Rewind starts off. Its snapshots slow the frame after them, which shows as
hitches at high picture rates. To use it anyway, set Enabled = 1 under
[Rewind] in config.ini.
Controllers: anything SDL knows works (PS4/PS5, Xbox, Switch Pro, real
PS3 pads: press the PS button after plugging in). Other USB pads get a
generic layout; put a gamecontrollerdb.txt from
SDL_GameControllerDB beside
the program for exact layouts.
You need Git, CMake 3.20+, a C/C++ compiler, Python 3.11+ and SDL2.
Linux (Arch/CachyOS: sudo pacman -S git cmake ninja sdl2 python;
Debian/Ubuntu: sudo apt install git cmake ninja-build build-essential libsdl2-dev python3):
git clone --recursive https://github.com/gabbycat4/BOSRecomp.git
cd BOSRecomp
cp /path/to/your/rom.nes bos.nes
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/bosrecomp bos.nes--recursive also downloads the engine and the menu (they are submodules).
If you cloned without it, run git submodule update --init --recursive.
The first configure takes a while: it builds the recompiler and translates
the game. Everything the game runs is recompiled (seeds.txt lists the code
addresses, collected by playing; it holds no game data).
Keyboard and controllers are rebindable in the launcher's Controls page. A second controller plays as player 2.
| Escape / right shoulder | Menu |
| F7 | Save states |
| F11 | Fullscreen |
| Tab | Fast forward |
| F12 | Screenshot |
Every menu setting also has an option for one run (it does not change
config.ini): --smooth 0-3, --present-rate N, --char-glide 0|1|2,
--flash-soften 0-4, --flash-colour 0-5, --no-sprite-limit 0|1,
--sprite-order 0|1, --overscan T,B,L,R, --wide 0-128. Developer logs:
--scroll-log FILE, --oam-log FILE, --flicker-log FILE, and in the
environment CYC_PACING_LOG=FILE (picture timing), BOS_MOTION_TRACE=FILE,
BOS_WIDE_SHOT=N.
bash tools/release/make_appimage.sh packages the play build (build-play,
configured against the shared engine checkout ~/Projects/nesrecomp) as
BladesOfSteelRecompiled-x86_64.AppImage. It never includes the ROM or the
rink memory.
The NESRecomp engine runs the recompiled game cycle by cycle. This project
adds a presentation layer (src/bos_extras.c) through the engine's
HOST_EXTRAS interface:
- every sprite is drawn from the frame's sprite list over the background alone (the engine's background capture), so none are dropped;
- a player's flash is recognised as his sprites switching to the bright palette for 2 frames in 6; the highlight is drawn in his own colours;
- the eased camera follows a moving average of the game's camera with a critically damped spring; in wide view its target stops short of the rink's ends so it eases into them;
- once per game frame the picture is split into layers (rink, sprite groups,
scoreboard) that the graphics card draws at fractional positions for each
in-between picture (the engine's
present_layers); - the wide view reads the game's object table (positions, poses from the game's own tables in the ROM) to draw players off the NES screen, and remembers the rink's background as it scrolls by;
- sprites are matched frame to frame and grouped into players; a player glides only when his pieces agree on one movement;
- emulating a frame takes about half of its 16.6 ms on a typical desktop, so the engine runs the emulation on a second thread while it shows the in-between pictures, which are drawn only from a snapshot of the finished frame, and holds each frame's picture to an even slot.
notes.txt has the measurements that started it.
- NESRecomp and
recomp-ui by Matthew Stanley; their
own licences apply (see the
nesrecompandrecomp-uifolders). The engine submodule points at a fork with window additions (in-between pictures and an emulation thread for them, display-sized windows, a VSync menu row, a per-game rewind default). - This project's code is licensed under the PolyForm Noncommercial License
1.0.0 (
LICENSE): free to use, share and change; not to be sold. - Blades of Steel is © Konami. This project is not affiliated with Konami and includes none of the game.