Quick Reference
Setup & Creation 2
| make() | A map as the game holds it, from what was read: its sidecar on it, its notes read, its placed models among it… |
| attach() | Stand a built scene in another at an offset: the scene itself goes under one group there, so whatever it lays… |
Checks (True / False) 1
| within() | Run fn with a neighbor's map as the map everything reads (its events, its surface), then put this map's back. |
Actions 7
| request() | A map past a border, read in the background: { state: "loading" | "ready" | "failed", map, copy }. |
| take() | The map the game is handed as it crosses into mapId: read already, or null (then it is loaded as any map is). |
| begin() | The step over a border begins: exit is Reactor3D.neighborExit's. |
| end() | The map crossed into has started (or the crossing was given up). |
| addBody() | Build the world of the map past side beside this one. |
| removeBody() | Removes the body. |
| place() | A neighbor's world that stands built is stood where entry now puts it (the editor: its shift along the border… |
Updating & Drawing 1
| update() | Once a frame on a 3D map: every map within DEPTH maps of the one played is read and its world built (one part… |
Other 37
| edgeStyleOf() | A map's style past one side (an index into SURROUND_SIDES), from what is read of it; undefined while it is no… |
| seamsKnown() | A map has been read: the lands that waited on its edges (R.surroundSeamStyles) are laid again. |
| offsetOf() | Where a neighbor's first tile lies, in this map's tiles. |
| covered() | The part of a side length tiles long that a neighbor extent tiles long, starting at start, stands on: true fo… |
| sideDistance() | How many tiles a place is from a side of its map. |
| read() | Read. |
| played() | The map just left over a border, as a map past a border: its world stands built from map, the map the game he… |
| ready() | Whether the border on side can be crossed without a break now: the map past it stands built and is read. |
| streaming() | Whether worlds stand beside the map played: their models, and the entered map's after a crossing, join a few… |
| stands() | Whether the world of the map past side stands built beside this one (a vehicle rides over that border). |
| noteRide() | What is ridden into the crossing, over a border or through an opening: carried into the map entered (carryRid… |
| rideNow() | The ride and the convoy of a crossing as they are named on the map entered: [ride now, convoy pairs]. |
| reseat() | Every world standing in scene, and in those, is told where it stands from the map being played (base: where s… |
| detach() | Take a neighbor's world out of the scene it stands in: its scene is its own again. |
| relay() | The land past a side is laid again: without it where a neighbor's world stands (on: N.covered's), with it whe… |
| shared() | Each map keeps its own land along the part of a shared side the other does not reach: the part of this map's… |
| inBody() | Run fn as a neighbor's world is worked on: its map is the map everything reads, and the player is where it st… |
| stage() | The next part of a neighbor's world still to lay: its pieces, a few chunks a part (BUDGET_MS), then its water… |
| settle() | A neighbor's placed models (its trees, its rocks as models) stand in their places: asked for until they have… |
| aheadEvents() | The events of the map past a border, beside the map played, that stand as models within EVENTS_AHEAD tiles of… |
| mask() | What each of a neighbor's placed models is bumped into, worked out one a frame while the player is still on t… |
| measured() | Whether a map past a border has had its rocks measured on the background meshers (Reactor3D.prepareRockColumn… |
| dark() | Whether the screen is still coming up from black (a map entered by a transfer): worlds are then built several… |
| spend() | Whether one more part of a world may be built this frame. |
| still() | A world that stands whole moves nothing: its places in the world are worked out once, not on every frame for… |
| keep() | The frame's work on a world that stands depth maps out: the rest of it laid, its models stood, and, beside th… |
| upkeep() | Whether one more piece of a standing world's upkeep (its events stood ahead, a model's footprint measured, th… |
| gap() | How far a place of the map played is from a world standing at at, width by height tiles: 0 inside it. |
| playedScene() | The scene of the map being played (the game's spriteset's), or null outside a game or for any other map. |
| solidAt() | Whether a point past the edge of the map played (mapData, in its tiles) is in the ground, or in something bui… |
| lightBlend() | How far toward the lighting of a neighboring map the lighting stands where the player is (Reactor3D.seamAmbie… |
| sidesOf() | Sides of. |
| strip() | The worlds standing in a scene are let go, one a frame (letting one go is a long frame too). |
| haze() | The far land of every world beside the map fades into the sky as the map's own does (only the map's own scene… |
| keepAhead() | The models stood ahead of the crossing (N.aheadEvents) stay where the map entered has the same event wearing… |
| carryParty() | The models of the party go with it: out of the scene left, into the one entered, as they are. |
| adopt() | The scene of the map crossed into, for its spriteset: the world that stood past the border, as it stands, wit… |
Setup & Creation
make
static sourceN.make(record)
A map as the game holds it, from what was read: its sidecar on it, its notes read, its placed models among its events.
attach
static sourceN.attach(main, side, scene, mapId, offset, record, base)
Stand a built scene in another at an offset: the scene itself goes under one group there, so whatever it lays later (plants as the eye nears, models as they load) stands there too.
Checks (True / False)
within
static sourceN.within(mapData, globals, fn)
Run fn with a neighbor's map as the map everything reads (its events, its surface), then put this map's back.
Details
Run fn with a neighbor's map as the map everything reads (its events, its surface), then put this map's back.
(A view with no game behind it, the editor's, has no such map: only what the last scene built left is swapped.)
Actions
request
static sourceN.request(mapId)
A map past a border, read in the background: { state: "loading" | "ready" | "failed", map, copy }.
Details
A map past a border, read in the background: { state: "loading" | "ready" | "failed", map, copy }. map is what its world is built from; copy is the one the game is handed when it enters.
take
static sourceN.take(mapId)
The map the game is handed as it crosses into mapId: read already, or null (then it is loaded as any map is).
begin
static sourceN.begin(exit, fromMapId)
The step over a border begins: exit is Reactor3D.neighborExit's.
Details
The step over a border begins: exit is Reactor3D.neighborExit's. True when it will be crossed without a break.
end
static sourceN.end()
The map crossed into has started (or the crossing was given up).
addBody
static sourceN.addBody(main, mapData, side, entry, record, bitmaps, host, parent)
Build the world of the map past side beside this one.
Details
Build the world of the map past side beside this one. host is a view with no game behind it (the
editor's): the neighbor's tileset flags and the scene settings that view builds its own maps with
(its image loaders, the tile size). parent is the world main is, when main is itself a neighbor's
(mapData is then that neighbor's map): the world built stands two maps out.
removeBody
static sourceN.removeBody(main, side)
Removes the body.
place
static sourceN.place(main, mapData, side, entry)
A neighbor's world that stands built is stood where entry now puts it (the editor: its shift along the border was changed), with nothing built again: only the land of both maps past the shared side is laid again, this map's from mapData.
Details
A neighbor's world that stands built is stood where entry now puts it (the editor: its shift along the
border was changed), with nothing built again: only the land of both maps past the shared side is laid
again, this map's from mapData. False when no world stands on that side.
Updating & Drawing
update
static sourceN.update(live, bitmaps)
Once a frame on a 3D map: every map within DEPTH maps of the one played is read and its world built (one part a frame, the nearest first; several while the screen fades in), each map once however many ways lead to it, and worlds further out are let go.
Other
edgeStyleOf
static sourceN.edgeStyleOf(mapId, side)
A map's style past one side (an index into SURROUND_SIDES), from what is read of it; undefined while it is not.
seamsKnown
static sourceN.seamsKnown(mapId)
A map has been read: the lands that waited on its edges (R.surroundSeamStyles) are laid again.
offsetOf
static sourceN.offsetOf(mapData, side, entry, width, height)
Where a neighbor's first tile lies, in this map's tiles.
covered
static sourceN.covered(length, start, extent)
The part of a side length tiles long that a neighbor extent tiles long, starting at start, stands on: true for all of it, { from, to } for a part, null when it stands beside none of it.
Details
The part of a side length tiles long that a neighbor extent tiles long, starting at start, stands
on: true for all of it, { from, to } for a part, null when it stands beside none of it.
sideDistance
static sourceN.sideDistance(mapData, x, y, side)
How many tiles a place is from a side of its map.
read
static sourceN.read(file)
Read.
played
static sourceN.played(mapId, map)
The map just left over a border, as a map past a border: its world stands built from map, the map the game held, so nothing is read, parsed or indexed again in the frames after the crossing (Map005 behind the party was 45 ms on one frame).
Details
The map just left over a border, as a map past a border: its world stands built from map, the map the game
held, so nothing is read, parsed or indexed again in the frames after the crossing (Map005 behind the party
was 45 ms on one frame). Only the files are read in the background, for the copy the game is handed if the
party turns back (N.take).
ready
static sourceN.ready(side)
Whether the border on side can be crossed without a break now: the map past it stands built and is read.
streaming
static sourceN.streaming()
Whether worlds stand beside the map played: their models, and the entered map's after a crossing, join a few a frame (Reactor3D.ModelJoins).
stands
static sourceN.stands(side)
Whether the world of the map past side stands built beside this one (a vehicle rides over that border).
noteRide
static sourceN.noteRide()
What is ridden into the crossing, over a border or through an opening: carried into the map entered (carryRide).
rideNow
static sourceN.rideNow(cross)
The ride and the convoy of a crossing as they are named on the map entered: [ride now, convoy pairs].
reseat
static sourceN.reseat(scene, base)
Every world standing in scene, and in those, is told where it stands from the map being played (base: where scene does).
Details
Every world standing in scene, and in those, is told where it stands from the map being played (base: where scene does).
detach
static sourceN.detach(main, side)
Take a neighbor's world out of the scene it stands in: its scene is its own again.
relay
static sourceN.relay(scene, side, on)
The land past a side is laid again: without it where a neighbor's world stands (on: N.covered's), with it where one has gone.
inBody
static sourceN.inBody(map, offset, globals, fn)
Run fn as a neighbor's world is worked on: its map is the map everything reads, and the player is where it stands in that map's own tiles (what is near it is laid first, the rest as it comes near).
stage
static sourceN.stage(body)
The next part of a neighbor's world still to lay: its pieces, a few chunks a part (BUDGET_MS), then its water (the land and the plants follow the water).
settle
static sourceN.settle(body)
A neighbor's placed models (its trees, its rocks as models) stand in their places: asked for until they have all arrived.
aheadEvents
static sourceN.aheadEvents(body)
The events of the map past a border, beside the map played, that stand as models within EVENTS_AHEAD tiles of the side the two maps share, as the game will hold them (its parked vehicles among them, at the numbers its entry gives them).
Details
The events of the map past a border, beside the map played, that stand as models within EVENTS_AHEAD tiles of
the side the two maps share, as the game will hold them (its parked vehicles among them, at the numbers its entry
gives them). Asked once for a world one map out.
mask
static sourceN.mask(body)
What each of a neighbor's placed models is bumped into, worked out one a frame while the player is still on the way: nothing is left to work out in the frame the border is crossed.
measured
static sourceN.measured(record)
Whether a map past a border has had its rocks measured on the background meshers (Reactor3D.prepareRockColumns), asked once: its world is built after.
dark
static sourceN.dark()
Whether the screen is still coming up from black (a map entered by a transfer): worlds are then built several parts a frame.
spend
static sourceN.spend(frame)
Whether one more part of a world may be built this frame.
still
static sourceN.still(body, on)
A world that stands whole moves nothing: its places in the world are worked out once, not on every frame for every tree in it (on).
Details
A world that stands whole moves nothing: its places in the world are worked out once, not on every
frame for every tree in it (on). What is laid in it later (plants as the eye nears) finds its own
place. Undone when it becomes the map played, where things move again.
keep
static sourceN.keep(body, depth, frame)
The frame's work on a world that stands depth maps out: the rest of it laid, its models stood, and, beside the map played, made ready to enter.
upkeep
static sourceN.upkeep(frame)
Whether one more piece of a standing world's upkeep (its events stood ahead, a model's footprint measured, the copy the game enters by) may be done this frame: one a frame, so the frames after a crossing, when the map one further out comes beside the party, do not take them all at once.
gap
static sourceN.gap(x, y, at, width, height)
How far a place of the map played is from a world standing at at, width by height tiles: 0 inside it.
Details
How far a place of the map played is from a world standing at at, width by height tiles: 0 inside it.
playedScene
static sourceN.playedScene(mapData)
The scene of the map being played (the game's spriteset's), or null outside a game or for any other map.
solidAt
static sourceN.solidAt(mapData, x, y, z, thin, doors, what)
Whether a point past the edge of the map played (mapData, in its tiles) is in the ground, or in something built, of the neighboring map whose world stands there (Reactor3D.cameraArmBlocked): a camera by a border keeps out of the rock past it as it does out of this map's.
Details
Whether a point past the edge of the map played (mapData, in its tiles) is in the ground, or in
something built, of the neighboring map whose world stands there (Reactor3D.cameraArmBlocked): a camera
by a border keeps out of the rock past it as it does out of this map's. what: "ground" or "pieces"
for only that, else either. False where no world stands.
lightBlend
static sourceN.lightBlend(scene, mapData, player)
How far toward the lighting of a neighboring map the lighting stands where the player is (Reactor3D.seamAmbient, Reactor3D.blendSeamSun): { home, weight, map, offset, globals }, home the map played, weight from 0 (its own) to 1, map the neighbor whose world stands in scene, offset where that map's first tile lies in this map's tiles; null with none in reach.
Details
How far toward the lighting of a neighboring map the lighting stands where the player is
(Reactor3D.seamAmbient, Reactor3D.blendSeamSun): { home, weight, map, offset, globals }, home
the map played, weight from 0 (its own) to 1, map the neighbor whose world stands in scene,
offset where that map's first tile lies in this map's tiles; null with none in reach. Worked
from how much nearer the player is to this map than to the neighbor's: one half on the border,
and at every place the same lighting reckoned from either map, so crossing changes nothing.
sidesOf
static sourceN.sidesOf(mapData)
Sides of.
strip
static sourceN.strip(scene)
The worlds standing in a scene are let go, one a frame (letting one go is a long frame too).
haze
static sourceN.haze(main, scene)
The far land of every world beside the map fades into the sky as the map's own does (only the map's own scene follows the sky each frame).
keepAhead
static sourceN.keepAhead(scene)
The models stood ahead of the crossing (N.aheadEvents) stay where the map entered has the same event wearing the same model, and go where it has not (a vehicle ridden off since, a page turned): its own syncing stands it again.
carryParty
static sourceN.carryParty(from, to, ride, riddenNow, others, shift)
The models of the party go with it: out of the scene left, into the one entered, as they are.
adopt
static sourceN.adopt(mapId)
The scene of the map crossed into, for its spriteset: the world that stood past the border, as it stands, with the map left behind standing past the border come over.
Details
The scene of the map crossed into, for its spriteset: the world that stood past the border, as it stands, with the map left behind standing past the border come over. Null when there is none (the map is then built as any map is).