Craft

Games

voxel game clone

SHOW HN2013

Legend

Craft

Minecraft clone in 2500 lines of C - even supports multiplayer online

github.com

#minecraft clone#c opengl#voxel game#multiplayer game

287points
149comments
#34of 1,739 in 2013
Top 2%of 2013 by points

How HN took it

DebatedReal support and real criticism

15 positive, 14 neutral or asking, 1 mixed, 11 critical, out of 41 comments about the project. Thread score +0.03.

Execution: 5 for, 6 againstIdea: 3 for, 3 againstPerformance: 4 for, 0 againstDocs: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Clean, well-laid-out code and an impressive small game with multiplayer

    From 3 comments
    • 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,…
      Taylorious on HN
    • This is amazing. Good job!
      10098 on HN
    • 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.
      bitwize on HN
  • Shows how little C is needed for a decent OpenGL game

    From 1 comment
    • 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.
      bitwize on HN

Objections

  • Little error checking for allocation and file failures

    From 1 comment
    • 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()…
      ryandrake on HN
  • Source has no comments

    From 2 comments
    • 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,…
      Taylorious on HN
    • 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.
      norswap on HN
  • Not really a clone; mostly rendering with no UI, mobs or crafting

    From 2 comments
    • 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…
      m3mnoch on HN
    • 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…
      outworlder on HN
  • Build fails without GLEW

    From 2 comments
    • 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…
      angersock on HN
    • My make also fails due to Glew. Can anyone provide some premade binaries?
      gravedave on HN

Requests

  • Add comments explaining design decisions

    From 2 comments
    • 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,…
      Taylorious on HN
    • What the code is doing is clear. The why (and especially the `why not') could benefit from some commentary.
      eru on HN
  • Add MSAA anti-aliasing

    From 1 comment
    • 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…
      aktau on HN
  • Fix cloud block disconnect bug

    From 1 comment
    • 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.
      simcop2387 on HN

Questions

  • How is the performance?

    From 1 comment
  • Why is memset needed on sockaddr_in?

    From 1 comment
    • 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…
      jburgueno on HN

Alternatives named

  • Minetest

    From 3 comments
    • Time to plug Minetest. The core is written in C++ and a Lua API is exposed for extensions. https://github.com/minetest/minetest
      davexunit on HN
    • 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…
      mistermumble on HN
    • 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…
      networked on HN
  • fogleman's Python Minecraft clone

    From 1 comment
    • Cool. From the same author of Minecraft clone with Python: https://github.com/fogleman/Minecraft The python version uses only 894 lines of code:…
      DanielRibeiro on HN
  • Sea of Memes C++ Minecraft clone

    From 1 comment
    • 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
      frik on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/6878565)