A high schooler built a 100,000-line open-world RPG from scratch to learn OpenGL
Hedra is a 3D open world game I wrote from scratch while in highschool
Project Hedra is an open-world, low-poly RPG with procedurally generated worlds, quests, bosses, classes, and skills, built on a custom engine featuring modern OpenGL rendering, screen-space reflections, ambient occlusion, and a Python scripting API. The developer started it at 15 to learn OpenGL; scope creep turned it into a full game and engine with roughly 100k lines of code and first-class Linux and Windows support.
The game only supports loading .PLY and .DAE models, both which are in plaintext and the models have no textures. Therefore if you put this into perspective, this means I wrote a bunch of text that reads text and creates interactive images from this. I think this is pretty cool.
- maxilevi
I started this game almost 10 years ago in high school as a way to learn OpenGL. Scope creep quickly took over, and it eventually became a full 3D game and engine with animations, rendering effects, dynamic terrains, etc, with ~100k lines of code and native Linux and Windows support.
Thought I'd share it! With AI coding now, it feels like a relic of another era. Crazy to imagine writing 100k lines by hand today!
- panza
Very humbling to see that this was created in high school and without AI.
Side note: it's interesting to see how 'wrote from scratch' or 'hand written' is used in 2026. I've seen it used to mean literally everything, while others might mean they wrote the core of the engine + some SDL sprinkled throughout. And now, it could just mean 'didn't use AI at all'.
- djmips
(2016) even more important because of the age we live in now.
- skyberrys
I appreciate your low-poly aesthetic. I bet you and like half this website have written a video game in highschool. You have found the right group to tell about it.
- chrysoprace
I think it's really cool that you built the game around a mod API - I think all games should do this, and I love projects that were built for the love of the craft.