Examples
Each of these opens in Folio as a fresh copy that you can play, read and change. Nothing is shared back, and it keeps working offline.
A Minesweeper for the sea, drawn on one canvas. Click to ping, and right-click,
or hold a finger down, to plant a buoy. A radar sweep, the ripples and the
shockwave all come from one frame Handler, and click says where you pinged
and with which button.
Tetris
Section titled “Tetris”Open Tetris · Open Canvas Tetris
The falling-blocks game, driven by the arrow keys and a frame loop. The first
repaints 200 rectangle Elements, and the second draws the same game with
canvas commands. Both share their rules through a Library and ship the same
Test Script.
Lighthouse
Section titled “Lighthouse”A short illustrated mystery: Page navigation, showing and hiding Elements,
sounds, a wait and a journal the reader writes in.