Nez.Portable/PipelineRuntime/Tiled/TiledIsometricTiledLayer.cs
/// <summary>
/// loops through the tiles and sets each tiles x/y value
/// </summary>
/// <returns>The tile positions.</returns>
loops through the tiles and sets each tiles x/y value
loops through the tiles and sets each tiles x / y value
TiledTile[] populateTilePositions()
        {
            for (var y = 0; y < height; y++)
            {
                for (var x = 0; x < width; x++)
                {
                    if (tiles[x + y * width] != null)
                    {
                        tiles[x + y * width].x = x;
                        tiles[x + y * width].y = y;
                    }
                }
            }
            return tiles;
        }
TiledTile [ ] populateTilePositions ( ) { for ( var y = 0 ; y < height ; y ++ ) { for ( var x = 0 ; x < width ; x ++ ) { if ( tiles [ x + y * width ] != null ) { tiles [ x + y * width ] . x = x ; tiles [ x + y * width ] . y = y ; } } } return tiles ; }
loops through the tiles and sets each tiles x/y value
loops through the tiles and sets each tiles x / y value
The tile positions.
The tile positions .