Skip to content

1681-engine / pixel / DeathPixels

Interface: DeathPixels ​

Defined in: src/pixel/Evaporation.ts:9

What a dying body hands over: its feet in the world, how it was drawn, and the pixels of its last frame.

Properties ​

pixels ​

ts
pixels: PackedPixels;

Defined in: src/pixel/Evaporation.ts:15


scaleX ​

ts
scaleX: number;

Defined in: src/pixel/Evaporation.ts:13

World pixels per sprite pixel (the body's scale), negative when the body faced left.


scaleY ​

ts
scaleY: number;

Defined in: src/pixel/Evaporation.ts:14


x ​

ts
x: number;

Defined in: src/pixel/Evaporation.ts:10


y ​

ts
y: number;

Defined in: src/pixel/Evaporation.ts:11

Released under the MIT License.