friend simulation (maze gen):
5 stages, simplified.
STAGE 1: MAKING FRIENDS (making openings in the maze)
lets say there is a 15*15 grid.
each part of the grid is a person.
when the simulation starts, each one will find a friend if they do not have 3.
once the simulation stops moving, you notice that some people dont have any friends.
this causes stage 2.
STAGE 2: CHEERING PEOPLE UP (fixing un-accesable parts in the maze)
one of the people with 3 friends around a person with 0 friends will be friends with the person with no friends.
once that person has 1 friend, he will not be able to make anymore friends, because he is shy. (dead end)
if 2 people with 4 friends end up near eachother, they will think they are copying eachother and stop being friends, leading to each one having 3 friends again.
if a person with 0 friends tries to be friends with another person with 0 friends, it wont work.
but some people want to be cool.
this causes stage 3.
STAGE 3: BEING COOL (making a start and exit of the maze)
one person will make a friend outside if he is on the edge of the grid.
that will lead to people thinking he is cool.
another person from an edge will see that.
that person will end up copying the cool guy.
he notices the people near the cool guy will notice he is copying.
he then will go to the farthest edge from the cool guy so he wont be near the cool guys fans.
the guy who is cool acts like a start.
the guy copying acts like a exit.
but some people have different body shapes (unrelated to friendship)
this causes stage 4.
STAGE 4: BODY SHAPES (making it so it isnt always rooms)
if a person isnt shy (1 friend only), they will change the shape of their corners.
if they are shy, they wont do this.
the reason is so a dead end/shy person can become a room in the maze.
a person that is not shy will change the shape of their corners to make it cooler to wander around in.
this could lead to rooms with pillars, too.
now stage 5 is how to make it into a maze.
STAGE 5: GENERATING (making the maze)
if you can picture the 15*15 grid again, good.
when a friend connects with another friend, they make a connection, taking of the border keeping them from touching the other friend.
once stage 1 and stage 2 happen, it becomes one of those square mazes with only one start and one exit.
stage 3 makes the start and exit.
stage 4 makes rooms, and the main maze look cooler.
-end of page-
0 comments