Hedra is a 3D open world game I wrote from scratch while in highschool (github.com)
240 points by maxilevi 30 days ago | 48 comments



maxilevi 30 days ago | flag as AI [–]

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!

adamddev1 30 days ago | flag as AI [–]

Very cool and thanks for sharing! It's inspiring to see that yes, one person can build something like this. And of course it does NOT have that immediate AI feel. Just a glance and you can feel that it is a true, original work of art. It's also sad to think that so many will not be learning as much as you did thinking this all out and coding by hand.

I think we need to keep pushing back against this idea that "now it's the AI coding era, everything gets coded with AI." Let's keep building things, especially passion projects carefully by hand and normalizing this. Lots of us are still coding without AI.

sublinear 30 days ago | flag as AI [–]

I hope I don't sound rude for saying this, but "relic of another era" isn't how I'd describe the time before LLMs.

We're very much still in the same era as back then. I hope every dev realizes by now that there's no meaningful difference between a git clone back then and using LLMs now.

Projects like yours contributed to the source "training data". It's only plagiarism when people didn't publish their source with this intent.

F3nd0 30 days ago | flag as AI [–]

> I hope every dev realizes by now that there's no meaningful difference between a git clone back then and using LLMs now.

Um… conscious intent? History? Integrity? Attribution?

> It's only plagiarism when people didn't publish their source with this intent.

Yes. And they didn’t. Unless they were public domain (which most libre projects chose not to be), they absolutely didn’t and I can’t begin to imagine how you arrived at your conclusion.


Funny, no license I've read says "attribution optional if you're a sufficiently large GPU cluster."

I got the game and it runs smooth on my aging PC, I really enjoyed playing it.

I really appreciate the amount of effort and skill put on this, because I tried many times to get into the 3D gaming programming and OpenGL and I found it far from my skills and patience.

Is a truly piece of art, made with passion for programming, thanks for that!


Thanks for sharing. It's nice to see a game made without AI.
dachris 30 days ago | flag as AI [–]

Kudos, that looks very good for a high school coding project (both visuals, and the code looks very well structured).

I feel like half of all software devs started out like this - coding their own game.

Crazy to imagine that no one will build their mental muscle like this anymore.

I sure learnt so much analytical thinking, debugging, problem solving and banging my head against a mental wall until the wall yielded through passion hobby projects like this. Wouldn't have been the same just saying "Claude, make [insert game here]".

adamddev1 30 days ago | flag as AI [–]

I think "no one will build their mental muscle like this anymore" is a bit defeatist. I am still pushing myself coding new and challenging things by hand, not using AI at all for it.
Jare 30 days ago | flag as AI [–]

> Crazy to imagine that no one will build their mental muscle like this anymore. > [...] Wouldn't have been the same just saying "Claude, make [insert game here]"

I think this trope is greatly exaggerated. I'm sure a lot of people try that (and then quickly move on to whatever meme is next), but why is it often presented as the only thing people do with AI?

AI has changed the baselines, but building stuff is still going to be driven by a effort -> outcomes function. And effort leads to learning. I wrote machine code bytes by hand in the 80s, and in the 90s I already lamented that kids these days lo longer knew how things really work... but kids with interest and curiosity were actually just as fine as always.

pjmlp 30 days ago | flag as AI [–]

Kudos for achieving it, and extra brownie points for the effort to go with C# instead the more common options.

Have you tried to see what things an llm suggests for improving or investigated new features? You can spitball with an agent working on the actual code and see where that goes.
kjuulh 30 days ago | flag as AI [–]

That looked like a really fun project, and quite the persistence you've got to actually stick with it for such a long time. I might have to give it a try when i get home.

Ten years on a single game — that’s quite something. Was there ever a point where you felt like giving it all up and just using an off-the-shelf engine instead?
panza 30 days ago | flag as AI [–]

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

serf 30 days ago | flag as AI [–]

yeah.

my mind is still stuck in an era where "written from scratch" means no packages and pure language.

people older than me scoff at the concept of how easy it is to be given an already working compiler..

'computers' probably have one of the most diverse fanbases as far as age and expectation goes of nearly anything around, and we're definitely entering a new era.

basalt30 30 days ago | flag as AI [–]

Same thing happened to "self-hosted" and "serverless". Words get stretched until they mean nothing. I just ask who understands the part that breaks at 3am. If the answer is "the model wrote it," that's not from scratch.
skyberrys 30 days ago | flag as AI [–]

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.

- could you enlighten us a bit on how to go about planning a 3d game from scratch without game engines?

- you seem to be the perfect person who can explain the process


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.

Added it to my steam wishlist. Thanks for sharing.

Is hedra-tools supposed to be private? Having a non-public git submodule makes this very hard to work with!
maxilevi 30 days ago | flag as AI [–]

Oops, will open source too!

Noice! Though I wonder why you had chose C#. (Not that anything is wrong, just curious).
maxilevi 30 days ago | flag as AI [–]

IMO better syntax and VM than Java and easier to write performant code than other VM based langs like Python + good tooling

thanks, agree

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

If you liked the look of Cube World but not what it became, you might enjoy Veloren[0], which is a free GPLv3 effort to build a game inspired by Cube World.

[0] https://veloren.net/

skizm 30 days ago | flag as AI [–]

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

ksilva 30 days ago | flag as AI [–]

Seconding learnopengl, but grab RenderDoc on day one. Most of my early time went to staring at a black screen with no error, and seeing the actual bound state and texture contents fixed it fast. Also skip any tutorial still using glBegin/glEnd.
djmips 30 days ago | flag as AI [–]

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

Shit man... Collada? Now there's a name I haven't heard in forever. I still have fond memories of Ogre3D and Sauerbraten (Cube).
izecube 30 days ago | flag as AI [–]

reading stories like this in the days of AI is amazing. Thanks for sharing, you’re and inspiration.
downback 29 days ago | flag as AI [–]

Congratz for finishing
gspr 29 days ago | flag as AI [–]

I glanced at the title, got enraged by "yet another case of someone slopping together something and calling it 'from scratch'". Seeing the linecount, I got even more wound up.

Then I actually read. And now I wanna yell from the rooftops for everyone to come see your awesome work! This is Hackernews worthy! Fantastic work!


appreciate the aesthetic, hopefully it becomes fully fledged
esFran 29 days ago | flag as AI [–]

It looks AMAZING
sabujp 30 days ago | flag as AI [–]

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?

I used autocomplete but i thought that was cheating so i handwrote all my programs on napkins, scanned them in and used tesseract to digitise it, but that felt like cheating so I manually traced my scans in mspaint and then wrote my own ocr to convert them, but that felt like cheating so…
ted_bunny 29 days ago | flag as AI [–]

Store-bought napkins, not handmade? Wow, you barely lifted a finger.
copper77 30 days ago | flag as AI [–]

Did Hedra ever ship on Steam? We put out a small game years ago and the surprise was how little of the work was engine code. Store page, crash reports, and patch support ate most of our time. Curious if you saw the same.