Repository navigation
Engine v2
Engine v2
The maths helpers leave engine.js for their own file, and the player gains a few fixes.
Breaking: maths chapters load math.js
Number lines, tiles, fraction rows, coordinate planes, chance objects, the number-set diagram, pickPoint and sorter are now in lib/math.js. Their code is unchanged. A chapter that uses any of them loads the file right after the engine:
<script src="../lib/engine.js"></script>
<script src="../lib/math.js"></script>After syncing, lint.py names every chapter that uses a helper without loading math.js. Books that draw no maths (picture books, the physics book) need no change.
To stay on the earlier engine instead:
python3 .claude/skills/papermorph/scripts/engine.py site --from DozenTwelve/Papermorph@engine-v1Player
- Captions now cover a question's narration too, shown above its card until the narration ends.
- The volume carries over between chapters (a muted slider does not).
?beat=Nstays within the chapter, whatever N is.- A chapter whose last step is a plain question ends there instead of throwing.
- A picture book's help no longer lists question shortcuts.
- A video exported with
export.pyends on a card in the book's language.
Syncing
Outside this repository, engine.py now syncs from the latest major release (engine-v2) instead of main. Fixes will be tagged engine-v2.0.1 and so on; --from DozenTwelve/Papermorph@main still takes the newest engine.