Our objective is to generate pearls on a map with a constant density, then put colours on these pearls according to their location. This pictures are my first attempt to solve the problem.
Clic to enlarge the pictures
Now I have realized that I was probably taking the wrong way by generating the pearls without taking in account the presence of the player. I mean : we generate pearl in an area first time a player connect here, and not before. So, it has sense to center the process around the player position.
Therefore :
- First, it is better to limit the generation to a much smaller area : the one a player can harvest without physically moving (circa 4 iPhone screens at default zoom)
- Then, we slightly inflect the rules to be sure there is at least one magic flame and one shop in this "harvesting area"
Eventualy, we add some variety in the pearls by the following rules :
- When two POI generating different colour compete at the same place the winner colour is the rarest of the area.
- Never generate a shop of a given colour in an area if they are already one of the same colour.