1681-engine / pixel / TransientLight
Interface: TransientLight ​
Defined in: src/pixel/lights.ts:11
Properties ​
born ​
ts
born: number;Defined in: src/pixel/lights.ts:16
color ​
ts
color: number;Defined in: src/pixel/lights.ts:24
The colour it lays on what it lights: a fireball's orange, a spell's violet, a blade's white.
fades ​
ts
fades: boolean;Defined in: src/pixel/lights.ts:22
A flash shrinks as it goes out; a carried light keeps its size.
follow? ​
ts
optional follow?: () => object;Defined in: src/pixel/lights.ts:20
A light riding a moving thing reads its place every frame.
Returns ​
object
x ​
ts
x: number;y ​
ts
y: number;r ​
ts
r: number;Defined in: src/pixel/lights.ts:15
Radius at its brightest, world px.
until ​
ts
until: number;Defined in: src/pixel/lights.ts:18
When it is gone; a carried light's is pushed to CARRIED_MAX_MS and brought in by its end().
x ​
ts
x: number;Defined in: src/pixel/lights.ts:12
y ​
ts
y: number;Defined in: src/pixel/lights.ts:13