Live Demos

GX programs compiled to WebAssembly, running in your browser. Same source compiles to native desktop apps.

Snake

Sokol + WebGL2

Classic Snake game built entirely in GX. Arrow keys or WASD to move. — Space = Start/Restart, Arrow keys / WASD = Move

Shapes

Sokol + WebGL2

Animated 3D shapes rendered with Sokol.

Triangle

Sokol + WebGL2

Colored triangle — the "hello world" of graphics.

Compiled with gx example.gx --target web — C backend → Emscripten → WASM + WebGL2.