How todepond/sandpond works
SandPond is a browser-based spatial-cell engine: users choose elements and place them into a world, where spatial rules update the cells and the world is rendered. SpaceTode is the element language; the README also highlights custom elements and the example families represented by Life, Sandbox, and T2Tile. The excerpts show the dropper writing into the world and the main loop selecting update behavior. Other links are omitted where the sampled code does not establish them.
Main entry points: Dropper.js Element placement · World.js Cell world · main.js Runtime loop · spacetode.js SpaceTode language
Components 13
User interaction
- Controls and selection
ui.js - Element placement
Source/Engine/Dropper.js
Simulation engine
- Runtime loop
main.js - Shuffle worker
Source/Engine/ShuffleWorker.js
Elements and language
- SpaceTode language
Libraries/spacetode.js - Legacy parser helpers
Libraries/eatlegacy.js - Life elements
Source/Elements/Life.js - Sandbox elements
Source/Elements/Sandbox.js - T2Tile elements
Source/Elements/T2Tile.js - Word artwork
Source/Elements/TwoTwoTwoTwo.js
World rendering
- Cell world
Source/Engine/World.js
Other components
- Player
- Habitat library
Libraries/habitat.js
Connections 9
- Player → Controls and selection: selects controls
ui.js - Player → Element placement: places elements
- Runtime loop → Element placement: tries placement
main.js - Element placement → Cell world: selects cell
Source/Engine/Dropper.js - Element placement → Cell world: writes atom
Source/Engine/Dropper.js - Runtime loop → Shuffle worker: creates worker
main.js - SpaceTode language → Legacy parser helpers: requires parser
Libraries/spacetode.js - SpaceTode language → Habitat library: requires library
Libraries/spacetode.js - Word artwork → Cell world: selects cells
Source/Elements/TwoTwoTwoTwo.js