How texnist/pixeldot works
PixelDot is a Godot Mono plugin for building chunked 2D sandbox worlds. The documented scene workflow configures BlockMap with a generator and block properties, adds TileMap layers, and optionally attaches fluid simulation and CPU lighting. The sampled code shows BlockData generating and retaining visible chunk data, then updating layers; fluid and lighting read that shared data and produce their respective visual effects. Generator hooks and the documented shader-based lighting are included, but BlockMap's implementation was not sampled, so its orchestration links are documented rather than inferred from source.
Main entry points: BlockMap.gd BlockMap · BlockData.cs Chunk data · BlockFluid.cs Fluid simulation · Lighting.cs CPU lighting
Components 8
World data
- BlockMap
src/BlockMap.gd - Chunk data
src/BlockData.cs
Terrain rendering
- Block layers
src/BlockLayer.cs
World effects
- Fluid simulation
src/BlockFluid.cs - CPU lighting
src/Lighting.cs - Lighting shader
shaders/lighting.shader
Generation integration
- Generator script
templates/GeneratorTemplate.gd
Other components
- Godot user
Connections 13
- Godot user → BlockMap: configures scene
README.md - Godot user → Generator script: provides script
README.md - BlockMap → Chunk data: sets up
README.md - Chunk data → Generator script: calls generation hooks
src/BlockData.cs - Chunk data → BlockMap: reports generated chunks
src/BlockData.cs - Chunk data → Block layers: updates tile chunks
src/BlockData.cs - BlockMap → Block layers: hosts layers
README.md - BlockMap → Fluid simulation: hosts fluid child
README.md - Fluid simulation → Block layers: reads layer ID
src/BlockFluid.cs - Fluid simulation → Chunk data: reads and changes blocks
src/BlockFluid.cs - BlockMap → CPU lighting: hosts lighting child
README.md - CPU lighting → Chunk data: reads blocks
src/Lighting.cs - CPU lighting → Lighting shader: configures shader
src/Lighting.cs