An Asteroids-style outline shooter — ship, shots, and rocks are all drawn as draw_line
polygons, no sprites — built with Spinel and
sdl as 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 vector_blasterOr build first and run the binary directly:
spin build
./build/bin/vector_blaster| Key | Action |
|---|---|
| Left / Right | Rotate ship |
| Up | Thrust |
| Space | Fire |
| W | Warp to the spot on screen with the most open room around it |
| R | Restart (after game over) |
| Esc | Quit |