Bestagon is a simple keyboard only game in Odin using the built-in Raylib vendor package.
The game is by design:
- asset free (all raylib rendered)
- heap allocation free (stack only)
Bestagon the hexagon fights evil squares with three magic stars. He can only fight while star power lasts. Squares of a given color can only be damaged by a matching star color. Enemies get tougher over time, and defeating them earns currency for upgrades.
Make sure Odin is installed, then run:
odin run srcOn nixOS the odin package does not bundle a precompiled libraylib.a, so instead we need raylib linked from the system. For this use the provided shell.nix:
nix-shelland run as normal. To exit the shell use:
exitOther than odin, also emscripten (emcc) is needed on path. On macOS:
brew install emscriptenYou can build the WASM version with:
bash build_web.shAnd serve it with an example simple python server (python3 required on path) with:
bash run_web.sh

