Var spriteSheet = new Backbone.SpriteSheet(,. It is automatically set when the sprite sheet model is initialized. Property img contains reference to the Image object. Attribute img contains the Image object or DOM selector (by id) for retrieving the Image object. For example a sprite sheet points to an image. Hence behaviour can be stored as properties and methods directly on the object. These attributes should only contain state information as it is those attributes which get saved and restored. A model has hash of attributes that are changed via getter and setter methods get and set. The engine is based on Backbone so it is essential to understand its core structure: a Backbone.Model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |