Examples that run right now¶
Every card below loads a real program into the playground and runs it. The sizes are the compiled .dbc images the shipped compiler produced today, measured by the same tool that builds the Classic Listings page.
OPEN constructs, DRAW paints, CLOSE releases. 801 bytes of DBC.
Console helloTwo PRINTs and an END: the console face, the exit status, and the smallest possible program image. 185 bytes of DBC.
Sine wave, the 1978 wayThe landing page's demo: nine numbered lines, TAB, SIN and a flag, printing the years 1988 and 2026 down a wave. 379 bytes of DBC.
BUNNY, 1978The classic, unmodified: the same compiler, a listing typed in 1978.
Ninety-five more 1978 listings, each with what it does in the browser today, are on the Classic Listings page.
Read the source, then change it¶
Each example is a plain .bas file you can read before you run it: sine-wave.bas, dworks-starter.bas, gx-gravity.bas, gx-first-light.bas, window-hello.bas, console-hello.bas. The GX sample ships beside its upstream sprites, map and MIT licence in gx-gravity-assets.
When you have made something of your own, press Copy share link in the playground: the whole program travels in the link, and nothing is uploaded anywhere.
Continue with Windows & Events, d/Works Widgets or Your First GX Game.