User Details
- User Since
- Feb 18 2024, 1:37 AM (10 w, 4 h)
Feb 24 2024
I agree with you here
Feb 23 2024
Be careful about that. Depending on how it's done it could have an impact for competitive gameplay. Distance of berries for example is quite important as it can occasionally happen that there is a very early cav raid here and the longer it takes for women to come back to CC, the more are killed. And maybe if a resource is close enough to the CC that can remove the need to build a dropsite to collect it.
With elexis, we said that a good compromise between probability and resources are 15 angles of 24 degree.
I followed the ticket advice and it was really useless, beacuse it doesn't work. In addition, my first try was a random radius between max and min, according to the ticket, and when it worked, it created anyway an imbalance. There are maps, such as Pompeii, where the player 2 must have all resources very near because it spawnes on a small peninsula. So in a tiny map it's impossible to preserve the balance because the space available to each player is different (i.e. in Pompeii player 1 starts on the continental part of the map and there are not problems for him)
Feb 22 2024
respect coding convention
The basic idea for animals, berries and mines is to map the entire area surrounding the base in polar coordinates. Integer rages are taken between a minimum and a maximum radius (integers because greater precision is useless and increases the number of points to be calculated, making it slower) and an angle between 0 and 360 (in the code is in radiant) with an interval of 1 degree. In this way we will have 360 times n non-random attempts and we will be certain of finding a place in any situation. The program places the resource as soon as it finds space: for animals it starts from the smaller radius 5 (up to 12), for berries and mines from the larger one 12 (up to 7) and then scales up. This choice was made to minimize the number of attempts and reduce calculations: in the external radius it is more likely to have space, while in the internal one there is no difficulty in placing the animals, which take up less space.