[{"data":1,"prerenderedAt":643},["ShallowReactive",2],{"project-6878565":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":47,"post_text":48,"what":49,"said":89,"maker_in_thread":204,"shape":206,"grid":211,"attempts":605,"same_week":606,"maker_shows":208,"maker_hidden":635,"reader_version":636,"card":637},"6878565","Craft","Minecraft clone in 2500 lines of C - even supports multiplayer online","title","Show HN: Minecraft clone in 2500 lines of C - even supports multiplayer online","https:\u002F\u002Fgithub.com\u002Ffogleman\u002FCraft","github.com","fogleman",1386641935,2013,287,149,34,1739,2,"legend","games","voxel game clone","desktop_app",[24,25,26,27],"minecraft clone","c opengl","voxel game","multiplayer game","debated",0.033,{"positive":31,"neutral":32,"mixed":33,"critical":34},15,14,1,11,41,{"execution":37,"docs":40,"idea":42,"design":44,"performance":45},{"positive":38,"critical":39},5,6,{"positive":41,"critical":18},0,{"positive":43,"critical":43},3,{"positive":41,"critical":41},{"positive":46,"critical":41},4,[38,33,41,41,41,41,33,43,41,41,41,41,43,43,41,41,41,33,41,38,41,38,43,33,41,38,38,41,41,38,41,41,43,38,38,43,38,33,43,46],null,{"problem":48,"audience":48,"pricing":48,"motivation":48,"time_to_build":48,"stack":50,"openness":87,"stage":88,"team_size":88},[51,57,68,72,83],{"value":52,"source":53,"evidence":54},"C","commenter",[55],{"id":56},"post",{"value":58,"source":53,"evidence":59},"OpenGL",[60,64],{"id":61,"by":62,"text":63},"6879796","aktau","I think an easy visual upgrade to get rid of the jaggies would be to (optionally) turn on MSAA (multi sample anti-aliasing). It doesn't drop the lo-fi look IMHO but still looks…",{"id":65,"by":66,"text":67},"6880674","bitwize","This is badass. Recently I'm discovering how little C it takes to create a decent game with OpenGL. Well-written, straightforward C is a phenomenally powerful language.",{"value":69,"source":53,"evidence":70},"GLFW",[71],{"id":61,"by":62,"text":63},{"value":73,"source":53,"evidence":74},"GLEW",[75,79],{"id":76,"by":77,"text":78},"6879160","angersock","CMake Error at CMakeLists.txt:20 (find_package): By not providing \"FindGLEW.cmake\" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided…",{"id":80,"by":81,"text":82},"6879465","gravedave","My make also fails due to Glew. Can anyone provide some premade binaries?",{"value":84,"source":53,"evidence":85},"CMake",[86],{"id":76,"by":77,"text":78},"open_source","unknown",{"praise":90,"objections":107,"requests":139,"questions":159,"alternatives":174},[91,103],{"value":92,"source":53,"evidence":93},"Clean, well-laid-out code and an impressive small game with multiplayer",[94,98,102],{"id":95,"by":96,"text":97},"6879168","Taylorious","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,…",{"id":99,"by":100,"text":101},"6879114","10098","This is amazing. Good job!",{"id":65,"by":66,"text":67},{"value":104,"source":53,"evidence":105},"Shows how little C is needed for a decent OpenGL game",[106],{"id":65,"by":66,"text":67},[108,115,123,134],{"value":109,"source":53,"evidence":110},"Little error checking for allocation and file failures",[111],{"id":112,"by":113,"text":114},"6879306","ryandrake","Not to be a party pooper, but there doesn't seem to be much in the way of error checking, null pointer checking, etc. e.g. Apparently library calls like calloc() and fopen()…",{"value":116,"source":53,"evidence":117},"Source has no comments",[118,119],{"id":95,"by":96,"text":97},{"id":120,"by":121,"text":122},"6886632","norswap","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.",{"value":124,"source":53,"evidence":125},"Not really a clone; mostly rendering with no UI, mobs or crafting",[126,130],{"id":127,"by":128,"text":129},"6882901","m3mnoch","not to be a parade-rainer (because this is really cool!), but it's not really a 'clone'. it's really just a cube rendering engine with a handful of textures and a barebones…",{"id":131,"by":132,"text":133},"6882806","outworlder","Just because it has blocks and you can break them, does not make it a 'minecraft clone'. Like we do not think a rich text editor to be a replacement for Microsoft Word. Let's see…",{"value":135,"source":53,"evidence":136},"Build fails without GLEW",[137,138],{"id":76,"by":77,"text":78},{"id":80,"by":81,"text":82},[140,148,152],{"value":141,"source":53,"evidence":142},"Add comments explaining design decisions",[143,144],{"id":95,"by":96,"text":97},{"id":145,"by":146,"text":147},"6879494","eru","What the code is doing is clear. The why (and especially the `why not') could benefit from some commentary.",{"value":149,"source":53,"evidence":150},"Add MSAA anti-aliasing",[151],{"id":61,"by":62,"text":63},{"value":153,"source":53,"evidence":154},"Fix cloud block disconnect bug",[155],{"id":156,"by":157,"text":158},"6879272","simcop2387","It would appear that placing block 15 (the clouds) can cause some problems. If you disconnect while in a player created cloud it causes you to fall through the ground permanently.",[160,167],{"value":161,"source":53,"evidence":162},"How is the performance?",[163],{"id":164,"by":165,"text":166},"6879083","tuananh","has anyone test this? how's the performance?",{"value":168,"source":53,"evidence":169},"Why is memset needed on sockaddr_in?",[170],{"id":171,"by":172,"text":173},"6880860","jburgueno","client.c: 145 struct sockaddr_in address; ... memset(&address, 0, sizeof(address)); Can someone explain me why you need to set memory of sockaddr_in to 0 ? (Even if &address…",[175,190,197],{"value":176,"source":53,"evidence":177},"Minetest",[178,182,186],{"id":179,"by":180,"text":181},"6881012","davexunit","Time to plug Minetest. The core is written in C++ and a Lua API is exposed for extensions. https:\u002F\u002Fgithub.com\u002Fminetest\u002Fminetest",{"id":183,"by":184,"text":185},"6885840","mistermumble","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…",{"id":187,"by":188,"text":189},"6879402","networked","For what it's worth when I tried MineTest [1] and Minecraft on my oldish laptop (ThinkPad X61s) MineTest performed significantly better. Determining how much of it is due to the…",{"value":191,"source":53,"evidence":192},"fogleman's Python Minecraft clone",[193],{"id":194,"by":195,"text":196},"6879283","DanielRibeiro","Cool. From the same author of Minecraft clone with Python: https:\u002F\u002Fgithub.com\u002Ffogleman\u002FMinecraft The python version uses only 894 lines of code:…",{"value":198,"source":53,"evidence":199},"Sea of Memes C++ Minecraft clone",[200],{"id":201,"by":202,"text":203},"6883391","frik","A similar Minecraft \"clone\" in C++. The author writes blog articles about the development, very interesting read! http:\u002F\u002Fsea-of-memes.com\u002FLetsCode4\u002FLetsCode4.html",{"comments":41,"answered":41,"key":205},[],{"commenters":207,"max_depth":208,"maker_replies":41,"first_comment_mins":209,"lifespan_hours":210},102,9,175,328,[212,214,217,220,222,226,229,231,233,236,239,241,243,245,248,251,254,257,260,262,265,267,270,273,275,278,279,283,285,289,292,296,298,301,303,306,308,310,313,316,318,321,324,327,330,332,335,338,340,343,345,349,350,353,355,357,360,363,366,369,372,375,378,381,383,386,390,391,394,395,396,399,403,406,409,411,415,418,421,423,426,429,431,434,436,439,441,444,446,449,452,454,456,459,461,464,466,469,471,474,477,479,481,483,486,488,491,493,496,498,500,501,504,506,508,510,513,515,518,521,524,527,530,533,536,539,541,544,547,550,553,556,559,561,562,563,567,570,573,576,578,582,584,587,589,592,594,597,601],[194,41,38,213,195,41],"project\u002Fpositive\u002Fnone",[215,41,38,213,216,41],"6879412","camus2",[218,41,43,219,146,41],"6879501","project\u002Fneutral\u002Fnone",[112,33,33,221,113,41],"project\u002Fcritical\u002Fexecution",[223,33,41,224,225,41],"6879374","commenter\u002Fneutral\u002Fexecution","papaf",[227,33,41,224,228,41],"6879391","EpicEng",[230,33,41,224,225,41],"6879416",[232,33,41,224,146,41],"6879499",[234,33,41,224,235,41],"6879587","geocar",[237,33,41,224,238,41],"6880257","k__",[240,33,41,224,228,41],"6882767",[242,33,41,224,225,41],"6883128",[244,33,41,224,228,41],"6883420",[246,33,41,224,247,41],"6879573","dagw",[249,33,41,224,250,41],"6879821","pjc50",[252,33,41,224,253,41],"6880015","barrkel",[255,33,41,224,256,41],"6879661","csmuk",[258,33,41,224,259,41],"6880000","thaumaturgy",[261,33,41,224,228,41],"6882838",[263,33,41,224,264,41],"6879397","strictfp",[266,33,41,224,235,41],"6879559",[268,33,41,224,269,41],"6880557","emillon",[271,33,41,224,272,41],"6880821","clarry",[274,33,41,224,256,41],"6879653",[276,33,41,224,277,41],"6880275","coldtea",[76,18,33,221,77,41],[280,18,43,281,282,41],"6879184","project\u002Fneutral\u002Fdocs","sown",[284,18,33,221,77,41],"6879270",[286,18,38,287,288,41],"6879496","project\u002Fpositive\u002Fexecution","shmerl",[290,18,41,224,291,41],"6880696","xmrsilentx",[293,18,41,294,295,41],"6879428","other\u002Fneutral\u002Fnone","krakensden",[297,18,41,294,256,41],"6879643",[299,18,41,294,300,41],"6879764","zurn",[302,18,41,294,256,41],"6879877",[304,18,41,294,305,41],"6880623","blueblob",[307,18,41,294,300,41],"6882636",[309,18,41,294,295,41],"6886235",[311,18,41,294,312,41],"6879939","nicholassmith",[314,18,41,294,315,41],"6879732","galaktor",[317,18,41,294,256,41],"6879902",[319,18,41,294,320,41],"6880012","tenfingers",[322,18,41,294,323,41],"6881041","agentultra",[325,18,41,294,326,41],"6880028","LinaLauneBaer",[328,18,41,329,295,41],"6886236","commenter\u002Fneutral\u002Fnone",[331,18,33,221,77,41],"6883669",[333,18,43,281,334,41],"6879580","eroullit",[336,18,38,287,337,41],"6880157","morganvachon",[95,43,43,339,96,41],"project\u002Fmixed\u002Fdocs",[341,43,41,329,342,41],"6879301","fyolnish",[344,43,43,281,282,41],"6879386",[346,43,41,347,348,41],"6879429","commenter\u002Fneutral\u002Fdocs","fleitz",[145,43,41,347,146,41],[351,43,41,347,352,41],"6879508","DigitalJack",[354,43,41,347,146,41],"6879527",[356,43,41,347,348,41],"6879651",[358,43,41,347,359,41],"6879723","zura",[361,43,41,347,362,41],"6879729","hobbes300",[364,43,41,347,365,41],"6880646","Ntrails",[367,43,41,347,368,41],"6882513","saraid216",[370,43,41,347,371,41],"6880232","raverbashing",[373,43,41,329,374,41],"6880602","kunil",[376,43,41,329,377,41],"6881023","pmelendez",[379,43,41,329,380,41],"6881302","bluetshirt",[382,43,41,329,371,41],"6882222",[384,43,41,347,385,41],"6881790","cobrausn",[387,43,33,388,389,41],"6879535","project\u002Fcritical\u002Fdocs","forgottenpaswrd",[120,43,33,388,121,41],[392,43,41,329,393,41],"6881385","adamman",[201,43,41,294,202,41],[183,43,41,294,184,41],[397,46,41,329,398,41],"6879841","ohwp",[400,46,38,401,402,41],"6879907","project\u002Fpositive\u002Fidea","paraboul",[404,46,41,329,405,41],"6879930","swah",[407,46,41,329,408,41],"6881535","kd0amg",[410,46,41,329,405,41],"6886925",[412,46,41,413,414,41],"6879981","other\u002Fneutral\u002Fidea","exadeci",[416,46,41,329,417,41],"6887443","anaccountonhn",[419,46,41,329,420,41],"6880051","MortenK",[422,46,41,329,277,41],"6880285",[424,46,41,329,425,41],"6880467","PavlovsCat",[427,46,38,401,428,41],"6955531","tibbon",[61,38,43,430,62,41],"project\u002Fneutral\u002Fdesign",[432,39,43,219,433,41],"6880327","jackweirdy",[435,39,41,294,202,41],"6881107",[437,39,41,329,438,41],"6881247","guidopallemans",[156,440,33,221,157,41],7,[127,442,33,443,128,41],8,"project\u002Fcritical\u002Fidea",[445,442,41,294,202,41],"6883429",[447,208,41,294,448,41],"6879385","qznc",[450,208,41,413,451,41],"6879449","coolsunglasses",[453,208,41,413,448,41],"6879647",[455,208,41,413,451,41],"6879677",[457,208,41,458,272,41],"6880691","other\u002Fneutral\u002Fperformance",[460,208,41,294,448,41],"6881267",[462,208,41,294,463,41],"6885759","rocky1138",[65,465,38,401,66,41],10,[467,465,38,468,291,41],"6880732","project\u002Fpositive\u002Fperformance",[470,465,41,294,62,41],"6882366",[472,34,41,458,473,41],"6879299","tmikaeld",[475,34,41,458,476,41],"6879314","simfoo",[478,34,41,458,100,41],"6879334",[480,34,41,458,473,41],"6879705",[482,34,41,458,277,41],"6880298",[484,34,41,458,485,41],"6880950","pkolaczk",[487,34,41,458,277,41],"6882226",[489,34,41,458,490,41],"6893240","erichocean",[492,34,41,458,485,41],"6897187",[494,34,41,458,495,41],"6897304","frowaway001",[497,34,41,458,485,41],"6899602",[499,34,41,458,485,41],"6897163",[187,34,38,468,188,41],[502,34,41,294,503,41],"6879463","Lerc",[505,34,41,458,348,41],"6879437",[507,34,41,329,473,41],"6879717",[509,34,41,294,216,41],"6880633",[511,34,41,294,512,41],"6880812","millerm",[514,34,41,294,348,41],"6883661",[516,34,41,294,517,41],"6879441","colechristensen",[519,34,41,294,520,41],"6879842","tetha",[522,34,41,329,523,41],"6880246","Narishma",[525,34,41,294,526,41],"6880618","VLM",[164,528,43,529,165,41],12,"project\u002Fneutral\u002Fperformance",[531,528,38,468,532,41],"6879104","chandesho",[534,528,41,294,535,41],"6879191","sherbondy",[537,528,41,294,538,41],"6879228","tcl16",[540,528,41,294,473,41],"6879296",[542,528,41,294,543,41],"6879461","tbrock",[545,528,41,294,546,41],"6882277","vvvVVVvvv",[548,528,41,294,549,41],"6879196","tikwidd",[551,528,38,287,552,41],"6879110","ngoldbaum",[554,528,38,468,555,41],"6879259","TimCinel",[557,528,38,287,558,41],"6879273","malkia",[179,560,33,443,180,41],13,[131,32,33,443,132,41],[99,31,38,213,100,41],[564,565,41,294,566,41],"6879759",16,"Yuioup",[568,565,41,294,569,41],"6880751","Nickoladze",[571,565,41,294,572,41],"6880851","driverdan",[574,565,41,329,575,41],"6881593","simplemath",[80,577,33,221,81,41],17,[579,577,43,580,581,41],"6879765","project\u002Fneutral\u002Fexecution","delian66",[171,583,43,580,172,41],18,[585,583,43,580,586,41],"6881413","anywherenotes",[588,583,43,580,172,41],"6882651",[590,583,43,580,591,41],"6883711","oh_teh_meows",[593,583,41,329,172,41],"6895877",[595,596,38,287,291,41],"6880724",19,[598,599,43,219,600,41],"6879714",20,"Todd",[602,603,43,604,490,41],"6893207",21,"project\u002Fneutral\u002Fidea",[],[607,612,617,621,626,631],{"id":608,"name":609,"points":610,"category":611},"6864584","bestmedicareprice",488,"data",{"id":613,"name":614,"points":615,"category":616},"6886834","tyto",179,"productivity",{"id":618,"name":619,"points":620,"category":616},"6858373","Heyday",139,{"id":622,"name":623,"points":624,"category":625},"6867232","Coinspotting",117,"finance_crypto",{"id":627,"name":628,"points":629,"category":630},"6861725","RiffBank",83,"creative",{"id":632,"name":633,"points":629,"category":634},"6873565","MightyName.com","web_saas",false,"v2",{"id":638,"name":5,"line":6,"ai":635,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":639,"top":18,"kw":640,"maker":11,"domain":10,"tier":19,"attempts":41,"strip":641,"url":9,"mix":642,"praise":92,"objection":109,"sub":21},6878565,0.03,[24,25,26,27],"5100001300003300010505310550050035535134",[31,32,33,34],1794036513221]