Skip to content

Examples that run right now

This page is a shelf of finished d/BASIC programs. Click any card and the program loads into the playground and runs, right in your browser, with nothing to install. Each card also gives the size of the compiled program file, .dbc, that today's compiler produces from it, measured by the same tool that builds the Classic Listings page.

Ninety-five more 1978 listings, each with a note on 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 sits next to the sprites, the map and the MIT licence it came with, in gx-gravity-assets.

When you have made something of your own, press Copy share link in the playground. The whole program travels inside the link, and nothing is uploaded anywhere.

Continue with Windows & Events, d/Works Widgets or Your First GX Game.