Closed awebmekhilef closed 2 years ago
Hey.
Your formula for calculating the index given x and y is supposed to be (y * _tileLayer.width) + x instead of (y * _tileLayer.height) + x.
(y * _tileLayer.width) + x
(y * _tileLayer.height) + x
You are absolutely right, well spotted!
Updated readme in develop branch, change will be available with next release.
Hey.
Your formula for calculating the index given x and y is supposed to be
(y * _tileLayer.width) + x
instead of(y * _tileLayer.height) + x
.