       sprite.y = sup.y
       container.addChild(sprite)
     return container
-  
+
   createPath: (points, options={}) ->
     options = options or {}
     interval = options.interval or 8
     key = options.frameKey or @pastDotKey
     container = new createjs.SpriteContainer(@layerAdapter.spriteSheet)
-      
+
     for x, i in points by interval * 2
       y = points[i + 1]
       sprite = new createjs.Sprite(@layerAdapter.spriteSheet)

        @tweenedSprites.push lastSprite
        @tweens.push tween
      lastSprite = sprite
      
    @logged = true
    container
    
  play: ->
    tween.setPaused(false) for tween in @tweens
    
  stop: ->
    tween.setPaused(true) for tween in @tweens
  
  destroy: ->
    @cleanUp()
    super()

PAST_PATH_ALPHA = 0.75
PAST_PATH_WIDTH = 5
FUTURE_PATH_ALPHA = 0.75
FUTURE_PATH_WIDTH = 4
TARGET_ALPHA = 1
TARGET_WIDTH = 10
FUTURE_PATH_INTERVAL_DIVISOR = 4
PAST_PATH_INTERVAL_DIVISOR = 2

Camera = require './Camera'
CocoClass = require 'lib/CocoClass'

module.exports = class TrailMaster extends CocoClass
  world: null

  constructor: (@camera, @layerAdapter) ->
    super()
    @tweenedSprites = []
