         }
         frames: [0]
       }]      
-    spriteLookup: {}
     activeAnimation:
       name: ""
       complete: ""

      firstFrame = I.activeAnimation.frames.first()
      firstSprite = I.spriteLookup[firstFrame]

      I.currentFrameIndex = firstFrame
      I.width = firstSprite.width
      I.height = firstSprite.height 
    else


    return I.data

  window["#{I.animationName}SpriteLookup"] ||= []

  unless window["#{I.animationName}SpriteLookup"].length
    I.data.tileset.each (spriteData, i) ->
      window["#{I.animationName}SpriteLookup"][i] = Sprite.fromURL(spriteData.src)

  I.spriteLookup = window["#{I.animationName}SpriteLookup"]

  if I.data.animations.first().name != "" 
    I.activeAnimation = I.data.animations.first()

    I.data.tileset.each (spriteData, i) ->
      I.spriteLookup[i] = Sprite.fromURL(spriteData.src) 
  else if I.animationName
    loadByName I.animationName, ->
      I.activeAnimation = I.data.animations.first()

      I.data.tileset.each (spriteData, i) ->
        I.spriteLookup[i] = Sprite.fromURL(spriteData.src)  
