Page 1 of 1

Looking for some specific functions/code in MineTest code

PostPosted: Tue Aug 14, 2012 22:21
by Neirdan
Hello everyone,

I'm new to Irrlicht and Minetest and I want to adapt parts of Minetest code for my game, but I'm kind of lost with all the files.

What I'm looking for:

-The main playing loop (not the GUI one)
-Cube selector with pointer (should be in the main playing loop?)
-Item selector with pointer
-Picking up / dropping items
-Map generation algorithm

And more advanced: How are cubes displayed/hidden (should be in the main playing loop?)

Could you please tell me in which files the code is?
I randomly searched in mapgen.cpp, main.cpp but I think there's something missing.

Thanks

PostPosted: Tue Aug 14, 2012 23:01
by jin_xi
look at game.cpp

PostPosted: Sat Sep 15, 2012 00:15
by Neirdan
What's the difference between a map node and a map block?
What about map sectors?

PostPosted: Thu Sep 20, 2012 14:16
by jordan4ibanez
Neirdan wrote:What's the difference between a map node and a map block?
What about map sectors?

The equivalent to this in minecraft is, a node = a block, and a map block = a chunk.

Although a map block is commonly called a chunk because of the minecraft terminology, all it really is, is a way to save the world to the world database in "sections"