Changeset 6628 for 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TiledTileMap.cs
- Timestamp:
- 2015-06-30 20:42:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TiledTileMap.cs
r6539 r6628 121 121 { 122 122 int index = tileSet.FirstGid + (y * tilesW + x) - 1; // Tiled uses one-based indexing for tiles. 123 tileImages[index] = tilesetImage.Area(x * tileSet.TileWidth, y * tile sH, (x + 1) * tileSet.TileWidth,123 tileImages[index] = tilesetImage.Area(x * tileSet.TileWidth, y * tileSet.TileHeight, (x + 1) * tileSet.TileWidth, 124 124 (y + 1) * tileSet.TileHeight); 125 125 }
Note: See TracChangeset
for help on using the changeset viewer.