A compound structure blueprint.

3D & HD-2D

3D World Builder: Terrain, Pieces, Water

reactor_3d_world.js · 6,427 lines · 185 public functions

A compound structure blueprint.

What This Module Does

An extension of Reactor3D (reactor_3d.js): the authored ground and the 3D tileset. Loaded right after the core, in the game from scriptUrls, in the editor from Reactor3D.EXTENSIONS, and in Node by the core's own tail so require("./reactor_3d.js") returns the whole API.

Classes & Namespaces

Design Notes from the Source Code

An extension of Reactor3D (reactor_3d.js): the authored ground and the 3D tileset. Loaded right after the core, in the game from scriptUrls, in the editor from Reactor3D.EXTENSIONS, and in Node by the core's own tail so require("./reactor_3d.js") returns the whole API.

Two halves. The rules come first and need nothing but the map data: where the ground is, what a piece is, how deep the water stands. The command-line checks (validate-map, build-structure) run them without three.js. The meshes come second and touch THREE only when a scene is built, so a game with no 3D map never reaches them.

View reactor_3d_world.js on GitHub · Show internal (_) functions