TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Craft: A simple Minecraft clone written in C using OpenGL shaders

578 pointsby sbjsover 6 years ago

18 comments

powerbook5300CSover 6 years ago
Fogleman has some really cool side projects in a variety of areas written in a variety of languages... and I noticed he’s got two kids! As a new father, how is this possible? Really boring&#x2F;easy day job?<p>Having a daughter is an amazing experience that is rewarding in its own right but something that really scares me about fatherhood is not being able to do any deep work for the rest of my life.<p>Doing deep work is another part of living I really enjoy and I’m somewhat petrified that I’ll never experience it again. Maybe it doesn’t matter.
评论 #17829652 未加载
评论 #17829426 未加载
评论 #17829087 未加载
评论 #17829444 未加载
评论 #17828620 未加载
评论 #17830733 未加载
评论 #17828399 未加载
评论 #17829011 未加载
评论 #17829155 未加载
评论 #17830698 未加载
评论 #17828370 未加载
评论 #17829804 未加载
评论 #17828968 未加载
评论 #17830974 未加载
评论 #17831062 未加载
评论 #17830910 未加载
评论 #17829918 未加载
评论 #17829727 未加载
评论 #17828500 未加载
Karrot_Kreamover 6 years ago
For folks who want something a bit less pedagogic and more fun to play as a game, I highly recommend Minetest [1] which gives you a programmable layer on top of the base Minetest engine to make Minecraft-like game modes.<p>[1]: <a href="http:&#x2F;&#x2F;minetest.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;minetest.net&#x2F;</a>
评论 #17828755 未加载
评论 #17829544 未加载
louisstowover 6 years ago
I actually compiled this project to Emscripten a few years back:<p><a href="http:&#x2F;&#x2F;s3-us-west-2.amazonaws.com&#x2F;ingame-data&#x2F;emcraft&#x2F;game.html" rel="nofollow">http:&#x2F;&#x2F;s3-us-west-2.amazonaws.com&#x2F;ingame-data&#x2F;emcraft&#x2F;game.h...</a><p>Here&#x27;s the code: <a href="https:&#x2F;&#x2F;github.com&#x2F;louisstow&#x2F;EmCraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louisstow&#x2F;EmCraft</a>
sytelusover 6 years ago
My 5 year old kid is addicted to minecraft and there is no way to prevent violence (you can always keep killing animals even in Creative + Peaceful mode). The problem is that 5 year old have little context on consequence and they really get intrigues in exercising new power they have. I&#x27;d like a <i>pre-schooler mode</i> which actively discourages any violence. May be if you try to kill something, an alien would descend and take away all your assets. So <i>only</i> thing you can ever do in Minecraft is just build something :). If someone can add this feature, it would be AWESOME!
评论 #17832808 未加载
评论 #17836490 未加载
评论 #17832693 未加载
评论 #17832680 未加载
pomeover 6 years ago
Fogleman also have awesome Minecraft-clone[0] in Python&#x2F;pyglet in just 900 lines of code.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;fogleman&#x2F;Minecraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fogleman&#x2F;Minecraft</a>
srcmapover 6 years ago
This is very cool. I got it build&#x2F;running in &lt; 3 minutes in Linux.<p>My boy love Minecraft. I like to use this as base to teach him more about programming.<p>Any suggestion on small projects that can be addon &#x2F; mod use this code as base.<p>I am thinking a series of coding exercises that can be hack&#x2F;add on to this:<p>Add a command&#x2F;mod to:<p>1) Draw line, Square, Triangle. 2) Draw Circle, Ellipse, Cone, Cylinder 3) Build Car, Airplane 4) Build Space Ship 5) Putting picture of his own face on the block.<p>... Any other suggestions?<p>Each small projects take about 1-2 hours build on skill sets that learn before. It should be simple and fun to do with goals of encourage kids to learn programming.<p>My boy finished all the CS classes in Khan Academy and seems to enjoys them.<p>If anyone else has strong interested in this, I will see if I (we - group of us) can develop this as a new Khan Academy CS class and contribute it to KA.
评论 #17830621 未加载
_bxg1over 6 years ago
Very cool. The beauty and draw of Minecraft have always come from the way it emerges from such simple elements. Reimplementing it in any language would be quite fun, I&#x27;d think. It&#x27;s almost the new Doom.
评论 #17828713 未加载
kuwzeover 6 years ago
A great place to find stuff like this is r&#x2F;tinycode[0].<p>[0]: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;tinycode&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;tinycode&#x2F;</a>
评论 #17828513 未加载
sbjsover 6 years ago
I don&#x27;t understand how 3d games are written or know what shaders are, so this is complete magic to me, and I&#x27;m surprised it&#x27;s only 5k lines of C code!
评论 #17828436 未加载
评论 #17828420 未加载
sergiotapiaover 6 years ago
Interesting choice of sqlite, what&#x27;s the story on concurrent updates these days? Last I tried to use it for a project was in 2009 and even at a measly 3 concurrent people, sqlite had trouble with data lock errors.<p>How does sqlite mesh well with Craft multiplayer?
andrew_wc_brownover 6 years ago
I&#x27;m working on a Modded Minecraft series using AWS<p>If anyone has an interest in playing on my server ping me. We could use a few more players.<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@andrewbrown_78670&#x2F;2018-modded-minecraft-server-on-aws-introduction-considerations-syllabus-e55545265a88" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@andrewbrown_78670&#x2F;2018-modded-minecraft-...</a>
pwaaiover 6 years ago
is there a realistic mining&#x2F;digging simulator? I love minecraft but sometimes I wish I was digging a real mine with buttresses
评论 #17831283 未加载
partycoderover 6 years ago
This has a much brighter future than Minecraft on Linux or Mac (completely neglected after Microsoft acquisition).
everyoneover 6 years ago
I&#x27;m assuming this runs about a jillion times faster than actual Minecraft? They should re-write minecraft like this; its performance has always been so awful.
评论 #17832948 未加载
a_r_8over 6 years ago
I fondly remember looking through this a few years ago as it was one of the first posts I found at the top of HN
enriqutoover 6 years ago
The screenshot is an infuriatingly aliased image, wouldn&#x27;t it be easy to fix?
评论 #17828304 未加载
评论 #17828779 未加载
simplifyover 6 years ago
I am in awe at how the executable is less than 1mb to download.
nautilus12over 6 years ago
Can microsoft come after him for this?
评论 #17830368 未加载