Skip to content

Flipbook beta ​

Interface of @v12-engine/client

ts
export interface Flipbook

A texture of frames (ParticleDef.flipbook): how many across and down, played at fps frames a second (once over a particle's life when left out, 0 to hold the frame it starts at), from a random frame (random), over and over (loop)

Members ​

columns ​

ts
columns: number;

Columns of frames across the texture

fps ​

ts
fps?: number;

Frames a second; once over a particle's life when left out, 0 to hold the first frame

loop ​

ts
loop?: boolean;

Whether it goes back to the first frame at the end

random ​

ts
random?: boolean;

Whether each particle starts at a random frame

rows ​

ts
rows: number;

Rows of frames down the texture