o
odin.langpkg.dev
packages / library / swarm

swarm

a0d4289library

A Galaga-inspired arcade shooter built with Odin and Raylib

No license · updated 2 months ago

Swarm

A Galaga-inspired arcade shooter built with Odin and Raylib.

Enemy ships fly into formation along bezier curves, then drift in formation while firing at the player. Survive as long as you can across increasingly large waves.

Building

Requirements

Build and run

odin run .

Build only

odin build . -out:swarm.exe

WebAssembly

odin build . -target:js_wasm32 -out:swarm.wasm

Requires a host page that loads odin.js from the Odin compiler's core/sys/wasm/js/ directory. Settings are persisted via localStorage instead of a config file.

Controls

Key Action
WASD / Arrow keys Move
Space / Left Ctrl Shoot
R Restart (after game over)

Powerups

Enemies occasionally drop powerups when killed.

Icon Effect
2x Double shot — fires two bullets simultaneously
$ Score bonus — instant +500 points
X Exploding shot — bullets explode on impact, damaging nearby enemies

Credits

See ACKNOWLEDGEMENTS.md for credits.