News ·
Hedra is a 3D open world game I wrote from scratch while in highschool
A developer released Hedra, a 3D open-world RPG and custom game engine written from scratch while in high school, with around 100k lines of code, procedural worlds, and full Linux/Windows support.
Project Hedra is a low-poly open-world RPG started as a high school project to learn OpenGL, later growing into a full game and engine of roughly 100k lines of code in C#. Players choose from four classes with two specializations each, explore procedurally generated worlds, complete generated quests, and use a skill tree plus 100+ items with a rarity system. The game runs natively on Linux and Windows and deploys to a Steam beta branch via CI.
Worlds are voxel based with no save file; only the seed and player data are stored, and everything else is generated at runtime. Marching Cubes extracts continuous surfaces from the voxels, and the renderer draws the whole world in three draw calls (water, terrain, instanced) using glMultiDrawElements. The engine includes a custom UI built in raw OpenGL, dynamic shader reloading at runtime, frustum and occlusion culling, mesh simplification for LOD, an OpenAL sound layer, BulletPhysics integration, particle instancing, and IronPython mod scripts that talk to the C# API. Custom C# primitives and heap/stack allocators minimize heap allocations to reduce GC pressure.
For anyone building with AI or interactive software, Hedra is a case study in a single-person full stack: asset compression tooling, a mock-and-integration-test framework for game components, and a mod-first architecture where the game is a mod over the engine to keep the API current. It shows how procedural generation plus engine-level craftsmanship can produce a large, working system, and the source is open for study at maxilevi/project-hedra.
References
- Hacker News · github.com
Read the full story at Hacker News ↗Like, save or discuss on Buzz


