How jj0o0/jotacraftgl works
Jotacraft is a C++/OpenGL voxel game. A player uses first-person controls to move through a procedurally generated chunk world and break or place blocks; the engine updates world state and renders the scene and HUD. The application loop and its Window, ImGui, and Game calls are visible in source. README capabilities provide the broader domain map, but most internal wiring was not sampled, so those connections are shown as unverified rather than asserted as source-backed calls.
Main entry points: game.cpp Game Coordinator · world_renderer.cpp World Renderer · world.cpp World State · application.cpp Application Loop
Components 17
Application Runtime
- Application Loop
src/application.cpp - Window Input
src/platform/window.cpp - Game Coordinator
src/game.cpp - Player Physics
src/player.cpp
Voxel World
- World State
src/world/world.cpp - Voxel Chunks
src/world/chunk.cpp - Block Registry
src/world/block_registry.cpp - Terrain Noise
src/world/noise.cpp - Block Interaction
src/world/world_interaction.cpp - Voxel Lighting
src/graphics/light_engine.cpp
Rendering
- World Renderer
src/world/world_renderer.cpp - Chunk Meshing
src/graphics/mesher.cpp - Graphics Resources
src/graphics/mesh.cpp - Texture Atlas
src/graphics/texture.cpp
Other components
- Player
Connections 19
- Application Loop → Window Input: creates
src/application.cpp - Application Loop → Debug GUI: initializes
src/application.cpp - Application Loop → Game Coordinator: updates and renders
src/application.cpp - Player → Window Input: provides controls
- Game Coordinator → Player Physics: updates
- Game Coordinator → World State: manages
- World State → Voxel Chunks: stores voxels
- Voxel Chunks → Terrain Noise: generates terrain
- Block Registry → Voxel Chunks: defines block types
- Player Physics → Block Interaction: targets blocks
- Block Interaction → World State: changes blocks
- World State → Voxel Lighting: updates lighting
- World Renderer → World State: reads world
- World Renderer → Chunk Meshing: requests meshes
- World Renderer → Graphics Resources: draws scene
- World Renderer → Texture Atlas: uses atlas
- Game Coordinator → World Renderer: renders world
- Game Coordinator → Game HUD: renders HUD
- Game Coordinator → Debug GUI: renders diagnostics