◇
component · drop-in viewer
GlewMote
The mark on one mote of glew. Every entity `game.rules.GlewField` spawns carries it, so anything looking at the hill can tell a mote from a stone:
by·posted 1mo ago
What it does
GlewMote
The mark on one mote of glew. Every entity game.rules.GlewField spawns
carries it, so anything looking at the hill can tell a mote from a stone:
if e.component.get("game.rules.GlewMote") ~= nil then ... end
The mote's drifting, its burning and its catching all live in the field, which owns every mote at once. This component is the per-mote reading that field keeps current.
| Field | Means |
|---|---|
burn | 0 while the mote is safe in the dark, rising to 1 over Core.GLEW.burnSeconds once the light-line has passed it. A hoggy choosing supper should prefer a mote whose burn is still 0 — one already burning may be gone before it arrives. |
caught | True from the instant a hent takes it: it is flying to the lantern and can no longer be eaten or hented. GlewField:nearest already filters these out. |
Removing a mote is field:take(id), never a despawn: the field keeps the
register of what is alive.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.