Loading...
179
Game
DoubleMe
3 years ago

Generating a complex map even with only 3 same sections


​​Hello everyone!

I've been working on the sequel. My first aim is to create a basic gameplay loop so I can test out the new game mechanics like I've shared some of them in the previous article. I've done some basics like human shaders and player movement. Then I've moved on to map generation. I wanted to post something. Anything. So I decided to write about the system I'm currently working on.

Well, the map in the DoubleMe feels kinda the same. To help fix that problem, I've turned to procedural generation. Here's a simple graph of what the algorithm does first (Sorry for the paint art):

ssrnd.png

The idea is the have handmade sections. Then generator creates rotated (90-180-270) and flipped (X - Y - XY) versions of those sections. Flipping a section does not equal to rotating 180 degrees. Now we have a palette and start generating.

The generator starts with a randomly selected root section. All sections have connections (The doors in the graph). The generator starts spawning sections for each of the root's connections. Then it does the same with newly spawned sections. And goes on and on until the section limit is reached. There are some requirements and checks to be made: collision, connection direction, limits, etc. If you want the technical details of how the algorithm works, write in the comments. Even with a simple 3 sections, it can generate quite a variety. These are the sections used in the video below: 

placeholder.png

​And here are some top-down outputs:

outputs.png

Now, these 3 sections are PLACEHOLDERS. Meaning they probably won't be in the game. I've made them just to test and develop the algorithm. There will be more open area sections along with the closed ones. Also, these placeholder sections look like they're from a prison. The map theme will be different this time. They're also only 3 sections in the palette so that's why it still kinda looks similar. I'll be making more of them with the designated theme. Also, never mind the doors leading to skybox. They will be closed with a secondary pass.

After this generation generator then tells each section to generate their props. These are things like boxes, walls, and lights. Solid props like walls really change the design of the section so makes things fresh since generated sections will look and play differently even though they're coming from the same section.

​As I said, it kinda looks similar because I use such a tiny palette of 3 sections. I'll be making new sections with the new map theme. I'll post the update when it's ready so look out for that!



0 comments

Loading...

Next up

A special weapon that can only be equipped on Halloween in DoubleMe 🎃

[Sound ON]

Got a present for you 🎁 (DoubleMe Christmas weapon)

[Sound ON]

Your clone is hiding among the crowd! Can you hunt them down before they kill you? 🔪

Here's a new gameplay video from pre-alpha!

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Enviromental kills 👌

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

For the first time ever, you can play DoubleWe! The demo is available on Steam for a limited time!

DoubleMe Sequel ✨New Features & GIFs!✨ (Dialogue System 🗯️,  Weapons🔪 and More!)

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

I generally find survivors games are missing that juice that you see in other indie games. So I've made one to fix that!

Check out Samurai Survivors🥷 https://gamejolt.com/games/samuraisurvivors/784964