Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Creating random world seed?

4: Adsense

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   

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.


#2 JTippetts   Moderators   

12635
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   

103
Like
0Likes
Like

Posted 11 May 2013 - 11:56 PM

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



#4 ApochPiQ   Moderators   

22560
Like
1Likes
Like

Posted 12 May 2013 - 12:02 AM

Of course; just generate noise of one less dimension :-)
Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

#5 JohnSpaceCat   Members   

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.