Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Creating random world seed?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 JohnSpaceCat   Members   -  Reputation: 103

Like
0Likes
Like

Posted 11 May 2013 - 11:28 PM

Hello, gents.

I'm trying to make a 2D game based around digging and collecting resources and that kind of thing, and I need to create a sort of random seed system that will:

 

a. create a certain "dirt" tile and generate certain resource drops at certain levels of depth

and b. sometime have little caves (or holes, rather) in random places

 

I know how to use srand, and I've been tinkering with functions for a while in attempt to make something work to this effect.

So just curious, GDNET, have you any ideas?

 

Thanks in advance.


Edited by JohnSpaceCat, 11 May 2013 - 11:38 PM.


Sponsor:

#2 JTippetts   Moderators   -  Reputation: 8664

Like
1Likes
Like

Posted 11 May 2013 - 11:52 PM

http://www.gamedev.net/blog/33/entry-2227887-more-on-minecraft-type-world-gen/
http://www.gamedev.net/blog/33/entry-2249106-more-procedural-voxel-world-generation/

#3 JohnSpaceCat   Members   -  Reputation: 103

Like
0Likes
Like

Posted 11 May 2013 - 11:56 PM

Would those... work in 2D? huh.png



#4 ApochPiQ   Moderators   -  Reputation: 16423

Like
1Likes
Like

Posted 12 May 2013 - 12:02 AM

Of course; just generate noise of one less dimension :-)

#5 JohnSpaceCat   Members   -  Reputation: 103

Like
0Likes
Like

Posted 12 May 2013 - 12:05 AM

Oh lol well thanks laugh.png






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS