Numpy arrays index rows as the first number, i.e: y rather than x first, defying convention. This was causing normal tiles adjacent to world boundaries to be offset by 10 pixels in x, y or both directions.
Also, the 0th row is at the top of the image, so it should have been using the top margin rather than the bottom margin to index from.
Numpy arrays index rows as the first number, i.e:
y
rather thanx
first, defying convention. This was causing normal tiles adjacent to world boundaries to be offset by 10 pixels in x, y or both directions.Also, the 0th row is at the top of the image, so it should have been using the top margin rather than the bottom margin to index from.
@rmarianski could you review, please?