logoalt Hacker News

Hedra is a 3D open world game I wrote from scratch while in highschool

181 points • by maxilevi • yesterday at 6:44 PM • 32 comments • view on HN

Comments

maxilevi • yesterday at 6:54 PM

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!

➕ show 7 replies
panza • yesterday at 10:54 PM

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'.

skyberrys • yesterday at 7:02 PM

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.

djmips • today at 3:43 AM

(2016) even more important because of the age we live in now.

chrysoprace • yesterday at 11:02 PM

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.

KolmogorovComp • yesterday at 10:22 PM

Reminds me of CubeWorld, if my memory serves me. And that’s a compliment!

➕ show 1 reply
skizm • yesterday at 9:16 PM

Where’d you get started with open GL? Any particular set of tutorials?

mrmckizzle • yesterday at 11:17 PM

Added it to my steam wishlist. Thanks for sharing.

dead_hn_theory • today at 1:40 AM

Shit man... Collada? Now there's a name I haven't heard in forever. I still have fond memories of Ogre3D and Sauerbraten (Cube).

0x23alfonso • yesterday at 7:05 PM

appreciate the aesthetic, hopefully it becomes fully fledged

sabujp • yesterday at 8:21 PM

Excellent work, also when you say by hand do you mean you had some autocomplete that autocompleted or showed you inline docs for method calls or did you actually write it by hand with no autocomplete at all?

➕ show 1 reply