GUI components
These components keep graphical state and render frames in a browser host.
Most return KTX2 images; some return SVG. Open the
browser demos to try them, or download a .wasm file to host one in your own
application. The GUI contract describes KTX2 output,
events, and timing.
Games #
aces-up.wasm plays Aces Up solitaire and returns SVG frames.
highway-chase.wasm runs a Spy Hunter style road chase on a generated highway.
klondike.wasm plays draw-one Klondike and returns SVG frames.
liars-dice.wasm plays Liar's Dice.
rotunda.wasm is a first-person walk through the Pantheon, with ramps, raised floors, birds flying through the oculus, and rain falling through it onto the drains below, drawn front to back from a BSP.
colosseum.wasm is a first-person walk through the Colosseum, with the hypogeum under the arena, ambulatories stacked on each other, and gulls landing on the seats that you can fly with, drawn as Build-style sectors or as a true 3D BSP.
hovercraftsman.wasm puts a 1998 startup's office in an orange hovercraft on San Francisco Bay: walk the cabin, write the demo on a 17 inch CRT, and drive the craft, with hovercraft handling and an autopilot, drawn from two true 3D BSPs.
peon-gold.wasm runs the Peon Gold game loop.
side-scroller-platformer.wasm runs a side-scrolling platform game.
snake.wasm combines key input with scheduled movement.
sudoku.wasm edits a Sudoku grid.
tetris.wasm runs a falling-block game.
tic-tac-toe-sun-moon.wasm plays a Sun and Moon tic-tac-toe variant.
tile-world-12x12.wasm moves through a small tile map.
vertical-shooter.wasm runs a scrolling shooter.
Interface studies #
Visualizations and rendering #
For one-shot image transforms, use the image content components. For
terminal interfaces, browse the TUI components.