AW2 Self Randomizing Rom [Complete]

Randomized Maps

If your design room 1 name starts with A, stats will not randomize. If it starts with B, maps will not randomize. If C, nothing will randomize. I’m doing it this way for the time being because menus are hard.

I’ve spent this week working on generating random maps ingame, so I thought I’d share the process.

wall of pics

Each step on its own:

Step 1)

Draw a winding line from one coordinate to another from different quadrants. This step is sometimes skipped.

These are all starting and ending at the same coordinates as each other:

Pipe:

River:

Sea:


I’m not sure why it has trouble here.

Step 2)

Create an HQ, 2-4 adjacent bases, and roads connecting for each player. Put them in opposite or different quadrants.

Step 3)

Using a number of small map chunks I made with the tileset in Tiled, pick some at random and scatter them across the map.

(I should probably make some more of these for more variety…)

Step 4)

Fill in remaining plains with tiles from a themed bank. More on themes later…


(Oh god the chaos)

Now each step layered!

Step 1)

Step 2)

Step 3)

Step 4)

I mentioned themes that only apply to step 4 before, so let’s see them now.

Rivers

Sea

Pipes

Roads & Pipes

Forest

Mountains

Mixed

Perhaps because I didn’t weigh any of the tiles heavily, it made properties/silos more common than I expected.

You can see that these generated maps have flaws, and their aesthetics will certainly vary, but I think it’s pretty cool that I was able to do this. :partying_face:

7 Likes