|
Post by kramar on Jul 31, 2015 20:31:47 GMT
Hi,
Can you please explain the relation between World.hexRadius and World.chunkRadius? I'm just playing around trying to make custom map generators and I can't quite figure out exactly what each parameter controls.
|
|
|
Post by khash on Aug 2, 2015 0:09:53 GMT
Hi!
Hex radius simply defines how far from center hex land would reach. Note that default world is simply a circle in hexagonal space. Chunk radius on the other hand is just maximum number of chunks used to build visible world. So for example if you have more hexes in your world than your chunks can fit everything else lying outside would be invisible (but you can use its data in code and potentially build those chunks later) If on the other hand you will define huge chunk radius compared to hex it would use only as many chunks as it need to display hexes and then fill remining space in border chunks with "border" type of the terrain (by default it is water but you can use mountains or whatever you like) chunks which are not close enough to any "non-border" hex would be discarded during creation process.
|
|