How ben0kay/isometric-new-2d works
This is a Godot survival-exploration game built around a player traversing a procedurally generated surface and connected underground layers. The main runtime flow coordinates world generation and streamed chunks, then supports exploration through movement, gathering, crafting, combat, storage, and survival systems; campaign sessions preserve player and world state. Visual presentation and inventory UI form supporting layers. The README is empty, so capabilities are inferred from the source tree; edges are limited to relationships listed in the SOURCE INDEX or shown in excerpts.
Main entry points: WorldLayerController.cs Layer controller · ChunkController.cs Chunk streaming · Player.cs Player · PlayerInventory.cs Player inventory
Components 25
World generation
- World configuration
CONFIG/WorldConfig.cs - World generator
WORLD/Generation/WorldGenerator.cs - Terrain elevation
WORLD/Generation/Terrain/TerrainElevation.cs - Chunk streaming
WORLD/Chunks/ChunkController.cs - Cave world
WORLD/Generation/Caves/CaveWorld.cs - Infinite generation
WORLD/Streaming/InfiniteWorldGeneration.cs - World navigation
WORLD/Navigation/WorldNavigation.cs
Layer runtime
- Layer controller
WORLD/Layers/WorldLayerController.cs - Layer runtime
WORLD/Layers/WorldLayerRuntime.cs - Layer connections
WORLD/Layers/Connections/WorldLayerConnection.cs - Layer membership
WORLD/Layers/WorldLayerMember.cs - Layer pursuit
WORLD/Layers/WorldLayerPursuit.cs
Player gameplay
- Player
PLAYER/Player.cs - Player inventory
PLAYER/Inventory/PlayerInventory.cs - Slot storage
PLAYER/Inventory/InventoryStorage.cs - Crafting
SYSTEMS/Crafting/PlayerCrafting.cs - Health and damage
COMBAT/Health.cs - Input modes
SYSTEMS/Input/InputModes.cs
Entities and content
- Entities and behavior
ENTITIES/Core/Entity.cs - Resource harvesting
SYSTEMS/Harvesting/ResourceHarvest.cs - World storage
SYSTEMS/Storage/WorldStorage.cs
Persistence and presentation
- Campaign session
SYSTEMS/Saving/CampaignSession.cs - Terrain visuals
VISUALS/TerrainVisual.cs - Inventory interface
UI/Inventory/UIInventoryMaster.cs
Other components
- Player
Connections 33
- Player → Player: controls
PLAYER/Player.cs - Player → Player inventory: uses inventory
PLAYER/Player.cs - Player → Health and damage: uses health
PLAYER/Player.cs - Player → Input modes: routes input
PLAYER/Player.cs - Player → Layer controller: constrains movement
PLAYER/Player.cs - Player inventory → Slot storage: manages slots
PLAYER/Inventory/PlayerInventory.cs - Player inventory → Crafting: checks ingredients
PLAYER/Inventory/PlayerInventory.cs - Inventory interface → Player inventory: reads and updates
UI/Inventory/UIInventoryMaster.cs - Inventory interface → Crafting: requests crafting
UI/Inventory/UIInventoryMaster.cs - World configuration → Layer runtime: loads layer catalog
CONFIG/WorldConfig.cs - Chunk streaming → World generator: generates chunks
WORLD/Chunks/ChunkController.cs - Chunk streaming → Infinite generation: requests generation
WORLD/Chunks/ChunkController.cs - Chunk streaming → World navigation: coordinates navigation
WORLD/Chunks/ChunkController.cs - Chunk streaming → Campaign session: notifies session
WORLD/Chunks/ChunkController.cs - World generator → Terrain elevation: provides terrain
WORLD/Generation/Terrain/TerrainElevation.cs - Layer controller → Chunk streaming: coordinates surface
WORLD/Layers/WorldLayerController.cs - Layer controller → Layer runtime: manages worlds
WORLD/Layers/WorldLayerController.cs - Layer controller → Layer connections: tracks connections
WORLD/Layers/WorldLayerController.cs - Layer controller → Layer pursuit: notifies pursuit
WORLD/Layers/WorldLayerController.cs - Layer controller → Cave world: uses cave layers
WORLD/Layers/WorldLayerController.cs - Layer runtime → Cave world: owns underground
WORLD/Generation/Caves/CaveWorld.cs - Layer controller → Layer membership: tracks actors
WORLD/Layers/WorldLayerController.cs - Entities and behavior → Health and damage: uses health
ENTITIES/Core/Entity.cs - Entities and behavior → Layer membership: uses membership
ENTITIES/Core/Entity.cs - Resource harvesting → Player inventory: adds resources
- World storage → Player inventory: transfers items
SYSTEMS/Storage/WorldStorage.cs - World storage → Campaign session: persists objects
SYSTEMS/Storage/WorldStorage.cs - Campaign session → Player: saves player state
SYSTEMS/Saving/CampaignSession.cs - Campaign session → Chunk streaming: restores world
SYSTEMS/Saving/CampaignSession.cs - Terrain visuals → Terrain elevation: samples height
VISUALS/TerrainVisual.cs - Terrain visuals → Layer controller: checks layer
VISUALS/TerrainVisual.cs - World navigation → Chunk streaming: queries chunks
WORLD/Navigation/WorldNavigation.cs - World navigation → Layer controller: queries layers
WORLD/Navigation/WorldNavigation.cs