src/video/texture.js
function (name, settings) {
            // instantiate a new sprite object
            return me.pool.pull(
                "me.Sprite",
                0, 0,
                Object.assign({
                    image: this,
                    region : name
                }, settings || {})
            );
        }
function (name, settings) {
            // instantiate a new sprite object
            return me.pool.pull(
                "me.Sprite",
                0, 0,
                Object.assign({
                    image: this,
                    region : name
                }, settings || {})
            );
        }
function ( name , settings ) { // instantiate a new sprite object return me . pool . pull ( "me.Sprite" , 0 , 0 , Object . assign ( { image : this , region : name } , settings || { } ) ) ; }
Create a sprite object using the first region found using the specified name
@name createSpriteFromName
@memberOf me.Renderer.Texture
@function
@param {String} name name of the sprite
@param {Object} [settings] Additional settings passed to the {@link me.Sprite} contructor
@return {me.Sprite}
@example
// create a new texture object under the `game` namespace
game.texture = new me.video.renderer.Texture(
me.loader.getJSON("texture"),
me.loader.getImage("texture")
);
...
...
// add the coin sprite as renderable for the entity
this.renderable = game.texture.createSpriteFromName("coin.png");
// set the renderable position to bottom center
this.anchorPoint.set(0.5, 1.0);
Create a sprite object using the first region found using the specified name