Steve's Roc Apps
These browser apps and games use Roc (compiled to WebAssembly) with a thin layer of JavaScript that draws the screen and passes along your clicks and keys. The canvas apps and the BASIC interpreter also run as native programs.
Board Games
Fast Track
The marble race board game. You play red against three computer players, whose marbles walk the board as they move. Ported from Steve's Elm version; the computer players are new: each turn, they try every legal way to play and keep the position they score highest.
Canvas Apps
Small games and animations, drawn on a canvas. Six of them are roc-ray's own examples, by Luke Boswell, taken with only small changes; Safari and Trick or Treat are this site's own. The same files run here and as native programs through roc-ray — the README says how to build those.
Safari
A drive through the country, as a screensaver: the rider leans into the turns and the animals cross when they like. Space pauses, the arrows step through the ride, J jumps to the next intersection, R starts over.
Snake
The arrows steer toward the glowing food; the wall ends the game.
Pong
W and S move the paddle, or hold the left button and point where you want it.
Breakout
Space serves; the arrows or the pointer steer. Each brick is worth what its color says.
Particles
A fountain of four thousand sprites that follows the pointer. Hold Space to widen the spray.
Camera World
A world larger than the window. WASD moves, the wheel zooms, Q and E turn it. The pointer is marked twice, once through the camera and once on the screen.
Pixel Workshop
A sixteen-by-sixteen canvas you drag on. Four colors, a note for each, and C puts the design back.
Trick or Treat
A child walks up to a house past six dancing skeletons, the door opens, and they think better of it. Space pauses, the arrows scrub, J skips a second.
Interpreters
BASIC
A BASIC interpreter written in Roc. It runs two dialects: ECMA-55 Minimal BASIC, and the BASIC of the 1978 Creative Computing games.
In Progress
These began as programs in Codex, the language of Damian's Cobblestone project. A translator, rocemit, turns them into Roc; nobody writes that Roc by hand.
Framebuffer
Codex programs drawing on a screen that is part of their memory: scenes, a raytracer, a globe, a GUI.
Roc Machine
Cobblestone's test programs, run start to finish on a simulated computer written in Roc: disk drives, a network card, and the network behind it.
GPU kernels
Cobblestone's WebGPU compute kernels, translated to Roc and run on the CPU.
Games
2048, Minesweeper and Klondike from Cobblestone, translated to Roc.








