Each example is an ordinary C++ program and Scene.yml file in the repository. Build visual demos with -DFX2D_BUILD_EXAMPLES=ON, then run binaries from the repository root so asset paths resolve.
Drag the ball, release, topple the tower. Mouse input, a trajectory preview drawn through the renderer's draw callback, impact strength read from scene.contacts(), and a reset callback that re-arms the slingshot. The same mechanic runs headlessly in tests/test_slingshot.cpp.
A wheeled vehicle that brings suspension, constraints, collision, and textured rendering together. Ships with a headless variant that steps the same scene with no window.
Open polyline terrain authored as one chain entity, click-to-spawn bodies at runtime, and one-sided chain contacts with ghost-vertex handling so balls roll smoothly across segment joins.
Hundreds of bodies piling into a container: the broad phase, contact cache, and sleeping under load. The adversarial test suite runs the same spawn pattern headlessly.
For a renderer-free loop suited to testing, simulations, and data collection, see headless mode.