// get position on the map based on a specfic tile index public Point GetPositionByTileIndex(int xIndex, int yIndex) { MapTile tile = GetMapTile(xIndex, yIndex); return(new Point(tile.GetX(), tile.GetY())); }
// gets player start position based on player start tile (basically the start tile's position on the map) public Point GetPlayerStartPosition() { MapTile tile = GetMapTile(playerStartTile.X.Round(), playerStartTile.Y.Round()); return(new Point(tile.GetX(), tile.GetY())); }