Jump to content
  • Advertisement
Sign in to follow this  
TristanAnselT.Angeles

Radom level generation

This topic is 2585 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I would like to learn about generating random levels for a game. Where should I start learning this from? What topics should I look into(and understand)? Recommendations for books,tutorials, examples and anything else that might help would also be great.

Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Some closely used and somewhat native files for C++, such as the timer header file, allows generation of random integers or such that you can use with a switch statement to randomly cycle through values and generate a level based on that random value.

I can elaborate more.

Share this post


Link to post
Share on other sites
Here are some of articles dealing with "tilemap" type generation, rooms, caves, etc: linky

You can also look up Perlin Noise (or just "Noise" in general), Fractals, and Cellular Automata, these are often used in procedural generation.

Share this post


Link to post
Share on other sites

Hi! I would like to learn about generating random levels for a game. Where should I start learning this from? What topics should I look into(and understand)? Recommendations for books,tutorials, examples and anything else that might help would also be great.

Thanks!

First off you should decide what kind of level structure you want. Tile based levels like most roguelikes, more open terrain with roads and towns/cities, cities themself or a 'standard' 3d game level ?

Choosing a tile based approach for example must not lead to an ascii representation, take a look at games like dungeons where you got a tile based structure with a 3d representation. An other tip is to use abstraction to simplify your structure. I.e a 3d level could consists of rectangular building blocks, each building block is designed by an artist and are connected by a level generation algorithm which only works with rectangular building blocks. The latter is often used when you need random generated levels with pretty and consistent visualisation.

Here's a link to the procedural content generation wiki, a good starting point.

Share this post


Link to post
Share on other sites
http://roguebasin.roguelikedevelopment.org/index.php/Articles

Roguebasin has some nifty articles on dungeon generation, Just skip down to the "Map" section and you find info on different types of levels and themes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!