top | item 6879168

(no title)

Taylorious | 12 years ago

This looks awesome. The code is very clean and well laid out. I am disappointed that there are literally no comments in the source code though. Hopefully he will add comments, because a lot of what he is doing is not super obvious, at least not to me.

discuss

order

sown|12 years ago

I think everything up until main.c:909 is setup. The while look at 909 is an event loop of sorts. Between that and line 1024 is receiving the network code, IIRC. There is some GL code after that to render GL, it looks like.

frik|12 years ago

A similar Minecraft "clone" in C++. The author writes blog articles about the development, very interesting read!

http://sea-of-memes.com/LetsCode4/LetsCode4.html

mistermumble|12 years ago

Minetest is a C++ based Minecraft-style simulation with a clean API for modding -- with a nice little ecosystem of mods.

(I am not affiliated with them. I just downloaded it a few months ago and have been tinkering with it.)

http://minetest.net/

fleitz|12 years ago

Learn to read code instead of comments. It's super straight forward C.

eru|12 years ago

What the code is doing is clear. The why (and especially the `why not') could benefit from some commentary.

forgottenpaswrd|12 years ago

I read c or assembler code like I read a newspaper, but comments are needed even in my own code to understand the higher lever design.

norswap|12 years ago

I shouldn't have to do a linear scan of the code to find what I'm searching. Like a book has headlines, code should have comments to indicate what's what.

fyolnish|12 years ago

Are you a C programmer?

adamman|12 years ago

Maybe her or she should come to your house and explain the code to you one on one.

Install the code and play around with it to see what it does. This person was very generous to make this code public and you are disappointed that it didn't meet your standards.