A GUIDE · SEVEN LAYERS, ONE INTEGER

How Wander is built

Wander is a walkable world of 82 ranges, valleys, seas and arenas, and none of it is stored: every cell, settlement, prize and hour of weather is a function of a column number and a seed. This guide takes the seven layers one at a time, each with the law it stands on and the twenty lines that make it, so you can build your own from the kit.

1. A number is a columnThe ruler sequence and the run ladder. 2. A column is a heightThe landscape laws and the world table. 3. A window is a chunkSampling, seams and the worker. 4. A chunk is a meshFaces, roofs, far tiles and the atlas. 5. A mesh is a viewCamera, frustum and the one shader. 6. A world has peopleSettlements, stamps, Sudoku towns, lanterns and edits. 7. A world has rulesVehicles, missions, prizes, warps and the weather clock.

Where the layers live

In the editions site: wander/worlds.js (layers 2, 3, 6, 7: the world table, chunks, people, prizes), wander/mesh.js (layer 4), wander/gl.js (layer 5), wander/vehicles.js and wander/wander.js (layer 7 and the client). In the kit: js/wander.js bundles the laws for Node, sitoolz/wander/ is the Python twin, and fixtures/wander.json, written from Wander's own code, is what both must reproduce.

The seventh demo, a walkable world built from the kit alone, is these seven layers in one page.

How Wander is built · by Lars Rocha.