A typical falling block game from the 1900's, built with Spinel and sdl — a demo of the sdl bindings.
- Spinel (
spin) - SDL3, statically linked via the
sdlpackage — nobrew installneeded at build or run time
With asdf:
asdf plugin add spinel https://github.com/jockofcode/asdf-spinel
asdf install spinel master
asdf set -u spinel master # make it the default (~/.tool-versions)Or build it from source:
git clone https://github.com/matz/spinel.git
cd spinel
make
export PATH="$PWD/bin:$PATH"
cd -spin run stackdownOr build first and run the binary directly:
spin build
./build/bin/stackdown| Key | Action |
|---|---|
| Left / Right | Move |
| Up | Rotate |
| Down | Soft drop |
| Space | Hard drop |
| P | Pause |
| R | Restart (after game over) |
| Esc / Q | Quit |