I've made a little minecraft clone. Sorry I've took so long before posting it here, but I was trying to pinpoint and fix a bug that was preventing it to cross-compile on x86 and x64... (see here: http://www.purebasic.fr/english/viewtop ... =4&t=60433
The "game" is in a very early stage:
- The world is procedurally generated on-the-fly as you walk around, and saved when you quit.
- You can dig and build, but there's still very few block types available.
- Water and lava exist, but are not really managed (they don't flow).
- Only one biome (rolling hills).
- No monsters or animals, but there's still bugs aplenty...

Code and resources are in the zip below, because the sources are too big to fit in a forum post

http://keleb.free.fr/codecorner/downloa ... clone2.zip
Controls:
- Left-click to dig / right-click to build;
- E/R to select a building block;
- G to switch on/off ghost mode (you can fly and pass through walls)
- Ctrl and arrows to jump and move.
Use the "#VIEWDIST" (line 43) constant to adjust the drawing distance if FPS are too low, and don't forget to turn the debugger off.
A last precision: I've used an octree structure to store the chunks' datas in memory (see an exemple code here: http://www.purebasic.fr/french/viewtopi ... 13&t=14123) ; I'm not sure it's an optimal solution and it could easily be replaced by standard arrays[x,y,z]...
Have fun!



