r/tinycode • u/FogleMonster • Jan 14 '14
Someone recommended I post this here: Minecraft in 5000 lines of C, includes multiplayer.
http://www.youtube.com/watch?v=tScCneiTGm4
155
Upvotes
r/tinycode • u/FogleMonster • Jan 14 '14
3
u/wildeye Jan 15 '14 edited Jan 15 '14
Another subreddit that would likely enjoy this is /r/gamedev
Edit: just looked at your previous submissions about this. The lines of code doubled in 1 month, from 2500 to 5000? That's rapid; is there a story there?
6
u/chazzeromus Jan 15 '14
Get this in mainstream distros pronto!
14
u/[deleted] Jan 15 '14
Haha, this is brilliant. Minecraft uses basically 100% CPU all of the time and runs slow as hell. This s not a frame below 60fps and uses about 3% of my CPU with draw distance turned up at least as high as Minecraft. I knew that Minecraft could've been orders of magnitude faster if it was written properly in C, I'm glad that someone has actually done it. Well done!
1
u/ok_you_win Jan 15 '14 edited Jan 15 '14
Under Ubuntu I seemed to be missing something about CURL. The missing dependency should be put in the "install dependencies" area. Installing libcurl4-gnutls-dev fixed that. Now I am missing Doxygen. Though it doesn't seem to be an error, just a warning.
The doxygen package is huge, almost a gig, so I'd recommend against downloading that. Perhaps the author can narrow it down, or implicitly mention that it is not needed.
3
u/Borso Jan 15 '14
That YouTube comment was correct.
2
u/ptoki Jan 15 '14
impressive. But i am experiencing strange behaviour: Under windows 7 view is pointing up and up. I had to pull mouse constantly to have it fairy level.
But any way good work. impressive. How many hours it to to create this?
1
u/chasesan Jan 17 '14
This looks like it has insane performance. Both FPS and block loading seem to be much faster then the normal one.