amot-dev / multithread-game

A multithread game (threads yet to be implemented as of now).
GNU General Public License v3.0
0 stars 0 forks source link

Disconnected cities #3

Open amot-dev opened 2 years ago

amot-dev commented 2 years ago

Especially with maxCityDistrics > 9, cities have a high chance of being disconnected since the vector of coordinates to generate on is shuffled. Maybe generate cities spiraling out? Would have to be a flag for getCoordinatesInRadius().

amot-dev commented 2 years ago

Possible fix is to generate cities similarly to tiles, with rings. For cities, randomizing the coordinate vector is still preferred to prevent cities from looking too similar.