anchor.diff:        @drainCounter.loop(60000, ->
           @energy -= @calcDrain()
           @adjustEnergyBar()
  -        penalty = @add.text(400, 550, "-#{@calcDrain()}", { font: '24px Army Wide', fill: '#fff' })
  +        penalty = @add.text(165, @barHeight, "-#{@calcDrain()}", { font: '24px Army Wide', fill: '#fff' })
           penalty.anchor.setTo(0.5, 0.5)
           rise = @add.tween(penalty)
  -        rise.to({ y: 500 })
  +        rise.to({ y: @barHeight + 50 })
           fade = @add.tween(penalty)
  -        fade.to({ y: 450, alpha: 0 })
  +        fade.to({ y: @barHeight + 100, alpha: 0 })
           rise.chain(fade)
           fade.onComplete.add(->
             @destroy()
  
positive.code: 
      @addText 'Previous Page', 400, 500, true
      @addText 'Back to Main Menu', 400, 550, false
  
    displayHighScores: ->
      text.destroy() for key, text of @menuTexts
  
negative.code:     else
        highScore = Store.get("survival-#{@game.lengthMultplier}")
        @previousRecordText.text = "(previous record: #{highScore} kills)" if highScore?
      @unpauseText = @add.text(400, 420, "Click/tap outside this box to resume game",
        { font: '18px Army Wide', fill: '#fff' }
      )
      @unpauseText.anchor.setTo(0.5, 0.5)
      @playAgain = @add.text(400, 340, "Restart Game",
        { font: '24px Army Wide', fill: '#fff' }
      )
      @playAgain.anchor.setTo(0.5, 0.5)
  
      @mainMenu = @add.text(400, 370, "Back to Main Menu",
        { font: '24px Army Wide', fill: '#fff' }
      )
      @mainMenu.anchor.setTo(0.5, 0.5)
  
      @input.onDown.add( (e) ->
        return unless @game.paused
        if e.x > 100 and e.x < 700 and e.y > 70 and e.y < 470
          if e.x > 290 and e.x < 510 and e.y > 330 and e.y < 350
            @delayedAction = 'restart'
            @resumeGame()
          if e.x > 250 and e.x < 550 and e.y > 360 and e.y < 380
            @delayedAction = 'quit'
            @resumeGame()
        else
          @resumeGame()
      , this)
  