       Crafty.trigger('CameraMove',
         x: Math.round(@x)
         y: Math.round(@y)
+        panning: cameraPan
       )
       Crafty.trigger('ViewportMove',
         x: Math.round(x)

  init: ->
    @requires('2D, Edge, Collision')
    @shakes = []
    @attr
      x: 0
      y: 0

    )

  cameraPan: (options) ->
    @motions.push(
      easing: new Crafty.easing(options.duration, 'easeInOutQuad')
      x: options.x ? 0
      y: options.y ? 0
      coords: (v) ->
        [@x * v, @y * v]
    )

  scrollWall: (speed) ->
    if speed.x? && speed.y?
