Repository navigation
Engine v2.4
Engine v2.4
An upright stage for phone films, and music that keeps time with the picture. Books made with v2 need no change, with one exception below.
Upright stage
<html data-stage="portrait">turns the stage to 900 × 1600 for a phone feed (YouTube Shorts, Reels).SWandSHhold the stage size (1600 and 900 otherwise), CSS has--swand--sh, and the camera, the bottom band card, the number line's origin, the captions, the cover, the help and end screens and the window fit follow them. A wide book computes the same values as before.- The side and top-right question cards and
header()are still placed for the wide stage, so an upright chapter is a film without questions. - The Skill's new shorts path (
references/shorts.md,assets/templates/shorts/) is built on it; the example is Madness and Civilization as shorts, episode 1.
Music in time
- When a beat's clip takes a moment to start, the beat clock stands still while the music runs on, so the music came out ahead of the picture at every beat until the ease-back caught it (0.13–0.16 s on average in the first shorts, up to 0.25 s). A beat under music now gives that time back from its closing hold, so each beat lasts as long in real time as on the music's timeline: 0.05–0.07 s on average in Chromium.
Renamed: step() is now frameStep()
- v2.3.1's frame function was a global
step(), which collided with chapters that declare their ownconst step(two algebra chapters stopped with a SyntaxError). It isframeStep()now, so chapters may name a helperstepagain. A chapter that called the engine'sstep()itself should callframeStep().
Syncing
engine.py in the Skill synced from engine-v2.4. Use v2.4.2 or later: v2.4.1 fixes several issues found right after.