Пример #1
0
 /// <summary>
 /// Sets a tile on the layer at a specific location (x,y)
 /// </summary>
 /// <param name="tile">Input the Tile object to store at that location</param>
 /// <param name="x">Input the x location of the tile</param>
 /// <param name="y">Input the y location of the tile</param>
 public void setTile(Tile tile, int x, int y)
 {
     if(x >= 0 && x < width && y >= 0 && y < height) // Bounds checking
         layer[y, x] = tile;
 }