Basic Random Tile Map Generation

by codelyoko373   Last Updated May 02, 2018 05:13 AM

Currently I've got a map like this: enter image description here

It's pretty simple but what I want is that area of tiles to be random, with the number of tiles present being random (Within a minimum and maximum amount of tiles of course) and the positions of the tiles being random (but still all connected to each other), but I'm not exactly sure how I should go about implementing that.

I'm sort of looking for a system that will generate random sections of tiles, a bunch of tiles within a group at random positions around the screen with all these sections being connected to each other via a larger section of tiles. Like the example shown in this perfect drawing I've quickly done: enter image description here

Each square would be a group of tiles, they're all of different shapes and sizes but all connected together via another large (or small) group of tiles in the middle.

I have looked into grid map generation before making this post but all the information I found would tend to go over more advanced map generation methods that have multiple layers which is not really what I need for my game so I was wondering if someone would possibly be able to advice me on what the best method would be to do this?

I'd very much appreciate it.

Related Questions

Map Generation(Different Techniques)

Updated October 22, 2017 09:13 AM

How to make my Diamond-Square-algorithm less 'random'?

Updated December 03, 2016 08:05 AM

Help Improving Map Generation

Updated May 05, 2018 01:13 AM

How to create polygons from tilemap areas?

Updated May 14, 2018 16:13 PM