title: Swift 4 - Jumper Game Scoring
body: <p>I have code in place for the scoring in a jumper game that I am creating. The score increases as the player moves up the screen. This code below works fine for keeping track of the score but the resulting Int is very high. Thus, a high score would result in the millions. I am trying to figure out how to divide the scoring increments, so that a high score would result in the thousands instead of the millions. </p>
  
  <p>In line two, I tried putting <code>/ 2</code> after after <code>...position.y</code>, but that resulted in an extremely low negative Int. </p>
  
  <p>Any suggestions? </p>
  
  <pre><code>if Int(player.position.y) &gt; maxPlayerY! {
      GameState.sharedInstance.score += Int(player.position.y) - maxPlayerY!
  
      maxPlayerY = Int(player.position.y)
  
      scoreLabel.text = String(format: "Score: %d", GameState.sharedInstance.score)
  }
  </code></pre>