 
   $scope.raft = new Raft($scope.raftHitPoints)
   $scope.sharks = []
+  $scope.updatesUntilNextShark = 0
 
   $scope.dt = 0
   $scope.last = timestamp()


      $scope.sharks.push(new Shark(x, y, velX, velY))

  setInterval($scope.spawnShark, 1000/$scope.sharksPerSecond)

  $scope.keyevent = ($event) ->
    keydown = $event.type is 'keydown'
    switch $event.which

if window.performance? and window.performance.now?
  timestamp = -> window.performance.now()
else
  timestamp = -> (new Date()).getTime()

class Entity
  constructor: (@x, @y, @velocityX, @velocityY) ->
