Closed jonoxia closed 10 years ago
Done except that the "camera" does not follow you when you sail east across the "international date line". I suspect the reason may be in calcAutoScroll.
Fixed that last problem. Could use some unit tests for the edge cases but this is done now.
If you set x_wrap and/or y_wrap on the map to true, then walking off the (left,right) and/or (top, bottom) sides of the map takes you to the opposite side.
Consists of three parts:
Anywhere that map[y][x-1] or map[y][x+1] is accessed directly, it needs to be replaced with a function call which returns the neighboring square based on current map topology.