GrowTown::_town_coord_mod
Posted: 07 Jan 2020 01:57
Can someone please add a comment that explains GrowTown::_town_coord_mod, especially the duplicated values. I plotted the points in a coordinate system and it does not seem to make sense. The code looks like this:
The plotted pattern looks like this (number of entries at each point):
Code: Select all
static const TileIndexDiffC _town_coord_mod[] = {
{-1, 0},
{ 1, 1},
{ 1, -1},
{-1, -1},
{-1, 0},
{ 0, 2},
{ 2, 0},
{ 0, -2},
{-1, -1},
{-2, 2},
{ 2, 2},
{ 2, -2},
{ 0, 0}
};
Code: Select all
10101
00010
02101
02010
00101