get_surrounding_cells(coords)-如果在刚才的函数最后加一行打印print(get_surrounding_cells(pos_clicked)),会发现同时打印了点击索引周围的6个索引,这个功能可以用来判断目标瓦片周围有哪些相邻的瓦片 get_used_rect()-这个可以返回你这个地图绘制部分的包围矩形,如果需要初始化一些每个地图格信息相关的数组,调用这个函数...
member this.GetSurroundingCells cell = let x, y = cell GD.Print $"TileMapLayer.GetSurroundingCells ({x}, {y}" BackEndUtil.fromI cell |> tileMapLayer.GetSurroundingCells |> Seq.map BackEndUtil.toI member this.GetUsedCells() = // GD.Print "TileMapLayer.GetUsedCells" tileMapLayer...
based on peering bits. But if a surrounding tile has terrain_id="B", it does not prioritize trying to matching with them via peering bits. It instead determines matches based on other, more opaque aspects, such as the terrain ID order in the tileset (merging if it is the first terrain...
get_surrounding_cells(coords)-如果在刚才的函数最后加一行打印print(get_surrounding_cells(pos_clicked)),会发现同时打印了点击索引周围的6个索引,这个功能可以用来判断目标瓦片周围有哪些相邻的瓦片 get_used_rect()-这个可以返回你这个地图绘制部分的包围矩形,如果需要初始化一些每个地图格信息相关的数组,调用这个函数...
For the values that are not present in the table, a type of linear interpolation called trilinear interpolation is made using the 8 surrounding color samples to track the distances between them and the original color. Those distances are reapplied in the new color space's samples to get an ...