text: /**
   * @class
   * @classdesc sprite graphic class
   * @memberof Graphics
   *
   * @param       {Core.Game} game       the game object
   * @param       {Number} width    width of the sprite.
   * @param       {Number} height   height of the sprite.
   * @param       {String} url      the URL of the sprite graphic
   * @constructor
   */
  function Sprite(game, width, height, url)
  {
      /**
       *    width
       *
       *    @type {Number}
       */
      this.width = width;
      /**
       *    height
       *
       *    @type {Number}
       */
      this.height = height;
      
      this.image = new Image();
      this.image.src = url;
  
      /**
       *    renders the sprite
       *
       *    @method
       */
      this.render = function()
      {
          game.graphics.context.drawImage(this.image, 0, 0, this.image.width, this.image.height,
                                                      this.width/-2,this.height/-2,this.width, this.height);
      };
  
      /**
       *    gets the resource URL from asset manager by itself. (assumes default path)
       *
       *    @method
       *    @param  {String} asset asset file name
       */
      this.setImageSrcFromAsset = function(asset) {
          this.image.src = game.assetManager.getAssetPath(asset);
      };
  
  }
  