Demos

GX programs compiled to WebAssembly and running in the browser. The same source compiles to a native desktop program.

Snake

Sokol

Snake. Swipe or use the arrow keys.

Boids

Raylib

Flocking simulation with steering behaviors.

Ball Physics

Raylib

Bouncing balls with collision detection.

Bullet Hell

Raylib

Dodge waves of bullets in a small shoot-em-up.

Image Generation

Raylib

Procedural image generation with pixel manipulation.

Logo Animation

Raylib

Animated GX logo with particle effects.

Hello Raylib

Raylib

Hello world with raylib.

Shapes

Sokol

Animated 3D shapes with Sokol.

Triangle

Sokol

The "hello world" of graphics.

Compiled with gx example.gx --target web (C backend, Emscripten, WASM and WebGL2).