Looking for some specific functions/code in MineTest code

Neirdan
New member
 
Posts: 2
Joined: Tue Aug 14, 2012 22:13

Looking for some specific functions/code in MineTest code

by Neirdan » Tue Aug 14, 2012 22:21

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
 

jin_xi
Member
 
Posts: 165
Joined: Mon Jul 02, 2012 18:19

by jin_xi » Tue Aug 14, 2012 23:01

look at game.cpp
 

Neirdan
New member
 
Posts: 2
Joined: Tue Aug 14, 2012 22:13

by Neirdan » Sat Sep 15, 2012 00:15

What's the difference between a map node and a map block?
What about map sectors?
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Sep 20, 2012 14:16

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"
If you can think it, you can make it.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 3 guests

cron