What makes a game good? What should game mechanics be like to be engaging but not…
- User
What makes a game good? What should game mechanics be like to be engaging but not frustrating?
- Assistant
- User
Good morning AI, do you know a method or mathematical system that can help me generate a video game map. The requirements are as follows: The maps are tunnel levels. There is one main path and two side paths. The paths should zigzag. I only know the L-System but that is not enough for me.
- Assistant
Good morning! You can use a graph-based procedural generation approach to create a video game map with tunnels and multiple paths. Here's a simple method you can follow:
- User
I have already finished the grid based procedurally world generation. It's more about setting the points that I connect to paths. Do you have any idea how I could do it? The points should not be too close together and should zig zag.
- Assistant
If you have already finished grid-based world generation, you could use the following approach to create zigzagging path points that avoid being too close to each other:
-
Select a starting point (x, y) on the grid for the main path.
-
Determine the limits that define the acceptable distance between points. For example, you might set a minimum and maximum distance for each step (minDist and maxDist).
-
Choose a random direction (dx, dy) for the next point. To restrict the direction to zigzag, you could have angle constraints (e.g., 45-degree turns or a range of angles) and ensure that the new direction doesn't overlap with the previous one.
-