//cellPostion单元格的序号 map.width 地图的宽 int x = cellPostion % map.width; int y = (cellPostion - x) / map.width;