Skip to content

Headless runs and screenshots ​

gasm-run can run the game without a window, with scripted pad input, and write the last frame as a PNG:

sh
gasm-run build-gasm/openballance.wasm --rom Ballance.iso --headless 2072 --no-hash \
  --input "1000-1005:A,1150-1155:A,1750-1755:Y,1900-2400:DOWN" --screenshot level1.png

--input takes frame ranges with buttons (A B X Y L R SELECT START UP DOWN LEFT RIGHT). Useful moments:

Frame
~990the main menu is up
1000 + Enterthe level selection
1150 + Enterlevel 1 loads (press DOWN N−1 times before it, with --param unlockall=1, for level N)
~1750the start prompt (Y = Q dismisses the tutorial)
~1930the ball appears

The gallery's screenshots were made this way.

OpenBallance is released under the GPL-3.0. Ballance is © 2004 Cyparade / Atari. OpenBallance contains no original code or assets: it runs the game from your own copy. It runs on gasm.