Skip to content

Documentation / @debuffjp/dev / DevClips

Class: DevClips ​

Defined in: dev/src/clips.ts:39

Rolling clip recording for the dev panel and agents: the last few seconds of the game canvas, saved into the project for devlogs, store pages and press kits. Recording runs two encoders, so it is off until someone turns it on. The dev panel is DOM, so it never shows up in a clip.

Constructors ​

Constructor ​

new DevClips(game): DevClips

Defined in: dev/src/clips.ts:43

Parameters ​

game ​

Game

Returns ​

DevClips

Methods ​

dispose() ​

dispose(): void

Defined in: dev/src/clips.ts:84

Returns ​

void


save() ​

save(name?): Promise<SavedCapture>

Defined in: dev/src/clips.ts:70

Save the recent past as a video. Recording carries on.

Parameters ​

name? ​

string = ...

Returns ​

Promise<SavedCapture>


set() ​

set(on): ClipStatus

Defined in: dev/src/clips.ts:56

Start or stop the rolling recording.

Parameters ​

on ​

boolean

Returns ​

ClipStatus


status() ​

status(): ClipStatus

Defined in: dev/src/clips.ts:45

Returns ​

ClipStatus


subscribe() ​

subscribe(fn): () => void

Defined in: dev/src/clips.ts:77

Parameters ​

fn ​

() => void

Returns ​

() => void