How devpenguin55/eldengrove works
Eldengrove is a C/OpenGL voxel-game engine and survival-game prototype. The runtime starts the world and graphics systems, then GLUT routes player input and display callbacks into gameplay and rendering. Chunk loading coordinates generated or saved terrain, while chunk code builds meshes and lighting; the renderer displays the world and models. The README also describes terrain generation, physics, entities, slopes, water, and persistent worlds. Some modules were not excerpted, so links to their behavior are omitted or marked unverified rather than inferred from names alone.
Main entry points: render.c Graphics and Models · chunks.c Terrain and Meshing · main.c Game Startup · chunkLoaderManager.c Chunk Streaming
Components 15
Runtime and Rendering
- Game Startup
main.c - Graphics and Models
render.c - Image Loading
stb_image.h - World Shaders
shaders - 3D Model Assets
assets/OBJ
Voxel World
- Chunk Streaming
chunkLoaderManager.c - Terrain and Meshing
chunks.c - Noise Generation
noise.c
Player and Entities
- Input Controls
input.c - Player Physics
player.c - Entities and Paths
entitySystem.c - World Raycast
raycast.c
Persistence and Math
- Chunk Disk Storage
worldDiskStorage.c - Vector Math
vectors.c
Other components
- Player
Connections 21
- Game Startup → Chunk Disk Storage: initializes
main.c - Game Startup → Chunk Streaming: initializes
main.c - Game Startup → Terrain and Meshing: initializes
main.c - Game Startup → Graphics and Models: initializes
main.c - Game Startup → Input Controls: registers callbacks
main.c - Player → Input Controls: provides controls
- Input Controls → Player Physics: updates movement
- Chunk Streaming → Terrain and Meshing: creates chunks
- Chunk Streaming → Graphics and Models: requests mesh rebuild
chunkLoaderManager.c - Terrain and Meshing → Noise Generation: samples noise
chunks.c - Terrain and Meshing → Chunk Streaming: requests neighbor rebuild
chunks.c - Chunk Streaming → Chunk Disk Storage: loads and saves
- Player Physics → Terrain and Meshing: queries voxels
- Entities and Paths → Player Physics: updates physics
- Entities and Paths → Graphics and Models: creates model instances
- Graphics and Models → Image Loading: loads images
render.c - Graphics and Models → World Shaders: uses shaders
- Graphics and Models → 3D Model Assets: loads models
- Graphics and Models → Entities and Paths: initializes entities
render.c - World Raycast → Terrain and Meshing: samples world
- Graphics and Models → Vector Math: uses transforms