Inserts new content into the object according to the preset options.
This function does NOT create a new PIXI.Sprite, it just takes the source object and returns a new one with the requested contents.
Factory.Sprite.create(new PIXI.Sprite(resources.example.texture), {
bump: true, // hability a collision properties
velocity: true, // hability a velocity base content
d20rpg: true // hability a standard d20 rpg
content: { ... } // append itens in a base sprite
});
A new object sprites
Generated using TypeDoc
The Sprite object is the base for all textured objects that are rendered to the screen
A sprite can be created directly from an resource like this: