title: How to copy one array to another using offsets and clipping?
body: <p>I have the following array used for the player's current sight. 'A' means Actor, or Player in this case.</p>
  
  <pre><code>// Sight with depth of 3
  char sight[] = { 
      0, 0,  0,  0,  0, 0, 0, // 0-6
      0, 0,  0,  0,  0, 0, 0, // 7-13
      0, 0,  0,  0,  0, 0, 0, // 14-20
      0, 0,  0, 'A', 0, 0, 0, // 21-27
      0, 0,  0,  0,  0, 0, 0, // 28-34
      0, 0,  0,  0,  0, 0, 0, // 35-41
      0, 0,  0,  0,  0, 0, 0  // 42-48
  };
  </code></pre>
  
  <p>I'm loading in this custom map file. W = Wall, D = Door, . = Floor</p>
  
  <pre><code>WWWWWWWWWWWWWWWW
  W.W.D.........WW
  W.W.WWWWW.WWW.WW
  W...WWWWW...W.D.
  WWWWWWWWWWWWWWWW
  </code></pre>
  
  <p>Okay, so I would like to copy this array into the current sight using an offset. If the player is at position (1,1), the x offset is 1, and the y offset is 1. Likewise, if the player is at position (5,4), the x offset is 5 and the y offset is 4. In this case, he is at position (1,1).</p>
  
  <p>No matter where the player is, his sight array has him at the center. So, how can I copy the map array into his sight array using offsets and clipping?</p>