// the engine behind shCode's physics lessons

Sprites and real physics in a handful of globals.

moSHion wraps planck.js, a full JS port of Box2D, behind a tiny facade: Sprite, Canvas, kb, mouse, world. Write a setup() and a draw() and you get real rigid-body physics running in the browser. No build step.

// docs & sandbox

Docs

The full API reference, the 15-challenge ladder the lessons are built from, and notes on how the engine is wired under the hood.

Open the docs

Sandbox

A live code editor. Write your own setup() / draw() and run it instantly, sandboxed in an iframe.

Open the sandbox