egret-game-library icon indicating copy to clipboard operation
egret-game-library copied to clipboard

tiled : TMXHexagonalRenderer 根据px获取网格坐标的方法计算错误

Open xbl opened this issue 8 years ago • 0 comments

TMXHexagonalRenderer 对象属性如下:

_hexsidelength:0
_rowheight:25
_sidelengthx:0
_sidelengthy:0
_sideoffsetx:47
_sideoffsety:25
_staggeraxis:"y"
_staggerindex:"odd"
animationTiles:Array[0]
cols:92
rows:45
tileheight:50
tilewidth:94

在调用TMXHexagonalRenderer.pixelToTileCoords()方法返回的结果和实际tiled 地图中的坐标有偏差

xbl avatar May 05 '16 05:05 xbl