Skip to content

ViewCinematics beta ​

Interface of @v12-engine/client

ts
export interface ViewCinematics

The game's cinematics as its view says them (GameView.cinematics): each by id, the lanes, transitions between shots and eases of the game's own, the screen's frame, the speakers and their recorded lines, and how the dialog and its choices look

Members ​

choice ​

ts
choice?: ChoiceLook;

How a cinematic's choice menu looks (C3, ChoiceLook): where, how wide, or a menu of the game's own in the client's place (component, mount); the whole part is the game's too (hud.widgets: [{ id: 'choice', component }])

defs ​

ts
defs?: Record<string, CinematicEntry>;

The game's cinematics, by id: each as data made in the editor (CinematicDef, its cinematics/<id>.json), as a script (Cinematic), or both with how it is played (CinematicEntry: { def, play, back: true }). The rules play them (playCinematic, or cinematic in a sequence), at the moment of the game they are about; the view plays them too (client.play('td.intro')), or plays one it makes then (kit.play(cinematic))

dialog ​

ts
dialog?: DialogLook;

How the dialog box looks: where it is, how wide, the portrait and the name, a typewriter's pace, subtitles, how many lines are kept; or a box of the game's own (component, mount). See DialogLook

eases ​

ts
eases?: Record<string, Ease>;

Eases of the game's own for its cinematics, by the name a key or a shot names them ("ease": "bounce"), beside the client's (linear, inOutQuad...); one of a client's name takes its place. See EaseRegistry

lanes ​

ts
lanes?: AnyLane[];

Lanes of the game's own for its cinematics (LaneDef: how a kind of item is read, played and drawn in the editor), beside the client's camera, dialog, units and the rest; one of a built-in's kind takes its place

screen ​

ts
screen?: {
        look?: ScreenLook;
    };

The screen's frame as the renderer draws it for a cinematic: its look (look: the bars' colour and edge, the fade's colour, the share letterbox: true bars take)

speakers ​

ts
speakers?: Record<string, SpeakerLook>;

Who speaks in the game's dialog, by the speaker ids its rules use (see world.dialog): their name and portrait

transitions ​

ts
transitions?: TransitionDef[];

Transitions of the game's own between the shots of its cinematics (TransitionDef: a mask of its own in WGSL), beside the client's (cut, fade, dissolve, wipe, iris, push, slide, blur, zoom, flash); one of a client's id takes its place. (transitions is the ground's: the borders between its tiles)

voices ​

ts
voices?: Record<string, string>;

Recorded lines of dialog, by the key of their words: a sound that is played on the voice bus as the line shows