HIIHTOLIITTO INVITATION - DOS version
=======================================

HIIHTO.EXE runs in VGA mode 13h (320x200, 256 colours) with music on a
Sound Blaster. One file: the DOS/32A extender is built in and the music,
palettes, pictures and texts are appended to the program.
=======================================
Needs:  486DX or faster (any 386 with a maths coprocessor runs it, slowly),
        16 MB of memory (20 MB or more keeps the music in memory; with less
        it is streamed from the EXE file while playing).
        For music, a Sound Blaster 2.0 or later (SB Pro, SB16, compatibles,
        8-bit DMA channel) and the BLASTER variable set, e.g.
        SET BLASTER=A220 I5 D1
        Without it the demo runs silently.
=======================================
Keys:   Esc = quit, Space = pause, L = loop, V = vsync on/off
=======================================
Options:
        /L   loop
        /V   wait for vertical retrace every frame (no tearing, a little slower)
        /S   no sound
        /HI  full detail always
        /LO  reduced detail always (desk floor at half horizontal resolution)
        Without /HI or /LO, detail is automatic: the desk floor drops to half
        resolution when frames take longer than 1/12 s.
=======================================
The music is the clock: pictures stay in sync with the soundtrack even when
the frame rate is low (about 2 seconds of sound are queued ahead, so slow
frames do not interrupt it). Precalculation at startup takes 10-15 seconds
on a 486; the music starts when it is done.
=======================================
DOSBox: the default settings work (16 MB memory, sb16); use cycles=max (or a
high fixed value) for a smooth frame rate, and memsize=32 to keep the music
in memory.
=======================================
The DOS/32A extender inside is the 9.1.2 binary as OpenWatcom shipped it
until November 2026 (src/tools/dos32a); the rebuild from OpenWatcom's
2026-11-21 snapshot crashed on real hardware (general protection fault at
0848:00000EA9 while loading).
=======================================
Building: everything is made from the Demo Editor HTML export alone (the
effect code, timeline, titles, pictures and the embedded soundtrack):
        WATCOM=/path/to/openwatcom-v2 sh src/build.sh HIIHTOLIITTO_INVITATION.html
Needs python3, node with playwright (Chromium), ffmpeg, a C compiler and
OpenWatcom v2. Clip times, crossfades and texts follow the export; the
effects are C ports, and the build warns if an effect's settings in the
export differ from the ones they were ported from.
