egret-game-library
egret-game-library copied to clipboard
tiled : TMXHexagonalRenderer 根据px获取网格坐标的方法计算错误
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 地图中的坐标有偏差