Search Unity

Random map algorithm of minecraft game?

Discussion in 'Scripting' started by leegod, Jan 27, 2015.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Lets say like I have 10 hexagon tiles and want to make random map(terrain, environment) like minecraft.

    Though I think height are not need to be so different each other like minecraft.

    How to make? What is algorithm of it?

    Thanks.
     
  2. QuinnWinters

    QuinnWinters

    Joined:
    Dec 31, 2013
    Posts:
    494
  3. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Thx for reply.

    Then how about make random, but feel natural terrain? So I want user feel map seems 'make sense', not entire chaos random tile positioning.

    There exist hills, plains, lake, mountain, desert. So it seems natural, can this map be still made by randomly?
     
  4. QuinnWinters

    QuinnWinters

    Joined:
    Dec 31, 2013
    Posts:
    494
    Yes it can still be made randomly but seem natural with hills, plains, lakes, etc. You have to code in algorithms to do that stuff to the random noise you generate. If you do searches for procedural terrain generation and voxel terrain you'll come up with an endless supply of articles, tutorials, and discussions on how to do it.

    Edit: Forgot to mention that searching "unity minecraft" pulls up quite a few good tutorials as well. There's also the following: http://forum.unity3d.com/threads/after-playing-minecraft.63149/
     
    Last edited: Jan 28, 2015