title: Build a grid level for a game with SpriteKit and SWIFT
body: <p>I’m searching the best way to build the levels for a game :</p>
  
  <ul>
  <li>The game will be composed with many levels, each levels will be
  unique.</li>
  <li>You’ll play an object (here the star), which is in movement
  on a grid. </li>
  <li>The object can move only to the bottom, it cannot go back.</li>
  <li>A level is composed with many cases, each cases will have a different
  behavior. </li>
  <li>My level will have a background, width of the screen, but
  the height will depend on the level, I suppose many times the height
  of the screen.</li>
  <li>The background moves depending on the object movements</li>
  </ul>
  
  <p>For now, I’m working on a little prototype, just to learn.</p>
  
  <p><a href="https://i.stack.imgur.com/1QRQ7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1QRQ7.png" alt="proto"></a></p>
  
  <p>After reading many tutorials, my idea is to create x squares (diamond-shape) using SKSpriteNode. And to identify the squares with identifiers.</p>
  
  <p>I don’t know if it’s a good solution in terms of performance? They will be a lot of squares in one level. I don’t realize :)</p>
  
  <p>Are we limited with the numbers of node in one scene?</p>