1681-engine / pixel / carriedLight
Function: carriedLight() ​
ts
function carriedLight(
at,
r,
color?,
now?
): object;Defined in: src/pixel/lights.ts:44
A light that rides at until end() is called (a shot in flight), and never past CARRIED_MAX_MS.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
at | () => object | undefined |
r | number | undefined |
color | number | SPARK |
now | number | ... |
Returns ​
object
end ​
ts
end: () => void;Returns ​
void