Skip to content

Engine v2.1

Choose a tag to compare

@DozenTwelve DozenTwelve released this 23 Oct 12:43
· 10 commits to main since this release

Engine v2.1

Additions and fixes on top of v2. Books made with v2 need no change.

Picture books

  • Scenes can draw through a beat's last 0.6 s hold: clockRun(f, D, { tail: true }), used by the picture-book kit's stopClock. A camera follows when its step has a tail. With an older engine the option is ignored and the hold stands still, as before.
  • After a film ends, Space, Enter and R replay or go on to the next episode, and the arrows still step back. The help no longer lists lesson-only keys.

Look

  • A book can set its board colours with a plain :root in its book.css (stage, cards, bar, volume and COL follow), so a light board needs no hand overrides. A commented example is in engine/book.css. The default dark look is unchanged.

Questions

  • Answer boxes accept $60, 5 €, 1,250 and thousands grouped with spaces.
  • ?beat=N on a question no longer swallows Space; the answer box takes focus once the lesson plays.
  • Enter after a chapter's last question opens the next chapter.

Drawing

  • draw, show and hide take an ease. Chapters that already passed one now ease as written.
  • A transform set on a path() is kept until the element first moves.

Syncing

engine.py in the Skill now syncs from the latest compatible release, engine-v2.1. A new major number still means books may need a change.