OWL NIGHT — the lab, in DOS

A story of scenes: a room to touch, clips with sound, a question at the end. 640×400, 256 colours. A lab, not a game — nothing here is finished.

Press play on the picture, and give it a moment — the whole story is fetched before the machine starts, file by file, and the bar under the picture shows how far it has got. Once fetched it stays in this browser, so the second time is quick.
It does not start by itself on purpose. A browser will not let a page make a sound until you have interacted with it, so a game that started on its own would play silently; the click that starts it is the one that unlocks the audio. When the story ends, any key plays it again.

Which screen?

How to play

First
the screen: 640×400 (a VESA card, the picture as it was made) or 320×200 (mode 13h, any VGA - a quarter of the pixels and a quarter of the bytes a second). In DOS the engine asks the same question in text mode
The room
click a thing to take it; or move the cursor with the arrow keys and take with Enter, if the browser has not given the emulator your mouse. Every thing taken goes to its slot on the panel below, and when the last one is taken the story goes on
A clip
Space or Esc skips it
A question
the number keys answer it
Q
quits, anywhere

What this is

A DOS program playing a story it reads from plain text files: which scene, which clip, which things are in the room, which number the scene ends with and which scene that number leads to. The clips are not recordings of video — the decoding is happening in the emulator, in real time, on what amounts to a 486; the sound is fed to a Sound Blaster by the DMA controller, and it is the sound that keeps time. The music under the room is mixed under the clips by the same program.

How it is built

Mode
VESA 100h, 640×400, 256 colours, linear framebuffer; or mode 13h, 320×200, the same story converted twice
Codec
8×8 blocks — skip, fill, copy, run-length — over a whole-frame motion vector, so a slow pan costs about thirty bytes
Palette
one for the whole clip, ordered dithering only; the things in the room share the room's
Sound
16-bit 22 kHz on a Sound Blaster 16, auto-init DMA on the high channel, position read from the DMA controller itself; an 8-bit card gets the high bytes
Addressing
unreal mode — a 4 GB limit cached in FS. No DOS extender, nothing licensed, nothing vendored
Built with
FASM, inside DOS. The engine is a 15 KB .COM file; the scenes are INI files beside their clips
Delivered
one file each, listed in owlnight.json with where they live; the page fetches them and hands them to the emulator as its disk C: before it boots. Nothing here is a bundle, and nothing big is in the repository

What is wrong with it

Some scenes are still empty: the story runs through them and says so on the screen. The room's panel has no art yet, only a dark band. The bitrate is down to about 350 KB a second at 640×400 — roughly what a CD of the period could feed, and half what it was — but that came from letting the encoder ignore film grain and put runs back into the dither, not from a better codec. A codebook is still not written, and on this material it would have to be a real one: measured, 165,648 coded blocks in a clip and 165,642 of them different from every other, so nothing matches anything exactly. And the whole edition is fetched before the first frame, because this emulator cannot be handed a file once it runs; a disk read sector by sector as the story asks for it would take the wait away, and is not built.

Part of wire-city-2: the engine, the desk and the converter are in LAB/OWLFLY4; the story's files are the repository owlnight-disk.