1681-engine / index / InputTape
Interface: InputTape ​
Defined in: src/input/inputTape.ts:8
A recording of what a player did, step by step, as plain JSON: attach it to a bug report and the bug plays again, or keep it as a replay. Only changes are kept (an action's value on the step it changed), so a minute of play is a few hundred numbers, not thousands.
Properties ​
actions ​
actions: string[];Defined in: src/input/inputTape.ts:11
The actions, in the order changes refers to them.
changes ​
changes: [number, number, number][];Defined in: src/input/inputTape.ts:15
[step, action index, value], in step order: from that step on the action reads value (0 up, 1 held).
meta? ​
optional meta?: Record<string, unknown>;Defined in: src/input/inputTape.ts:17
The game's own: a seed, a level, a build, whatever the replay needs to start the same.
steps ​
steps: number;Defined in: src/input/inputTape.ts:13
Steps recorded.
version ​
version: 1;Defined in: src/input/inputTape.ts:9