← The Glowing Orb
ORB engine · web · WebGPU

The engine, running in your browser

These are ORB programs compiled to WebAssembly with emscripten and drawn through WebGPU. The C is the same that runs natively on Vulkan; the browser build swaps in the WebGPU backend and fetches its cooked content as one zip before the program starts. The last is a game of its own, outside the engine: plain C on SDL3, built and shipped for the web by the orb tools alone.

The draw gallery's cover page

draw gallery sb_draw_gallery

Twelve finished-looking application screens drawn by draw, ORB's 2D renderer: a dashboard, a music player, a code editor, a node graph, a trading terminal and more, the last page playing every motion. The same screens as the gallery, here drawn live on your GPU.

1.0 MB program 0.3 MB content 12 pages one WebGPU device
  • ←→turn the pages (the wheel and a click do too)
  • HomeEndthe first and last page
  • Ffill the window
  • Sframe statistics
  • Escend the program
Launch the demo
The arena: two bases on a road across a grass field with two ponds, blue and red units fighting between them

the arena sample_game

The engine's RTS-shaped test bed, played by the game framework: two bases spawn units up to 32 a team, and each walks to its rally point and strikes the nearest enemy. The world is entities and components ticked at a fixed 60 Hz, drawn by render as one scene — a tilemap ground with animated water, the bases as boxes, the units as sprites, under an orthographic camera. Its simulation is deterministic: the web build reaches the same world, tick for tick, as the native one.

1.1 MB program 0.1 MB content 60 Hz fixed tick one WebGPU device
  • ↑↓←→move the blue team's rally point
  • WASDpan the camera
  • QEzoom out and in
Launch the demo
star: a miner with a pickaxe in a sealed room of stone tiles, the controls in strips above and below

star star

A top-down excavation prototype, and not an engine program: plain C11 on SDL3, built with the orb kit — build_tool, the test runner and orb ship — and nothing else of ORB. The same source runs natively on Windows; for the browser emscripten supplies SDL3, the renderer is WebGL, and the console-style sound effects are synthesized at startup and played through Web Audio. The game steps at a fixed 60 Hz and draws its pixel view at the largest whole-number scale your window holds.

0.9 MB program no content 60 Hz fixed tick WebGL through SDL3 online up to 8 a room

It plays online: everyone who opens it shares one room, and sees the others walk and dig, through a relay on Cloudflare Workers. Bring a friend in a second window, or play alone.

  • WASDor the arrows: walk
  • Spaceswing the pickaxe
  • Gthe floor grid
  • Rreset the room
  • Mmute (sound starts at the first key press)
Launch the demo