Class cc.AtlasNode#ctor
- Defined in: CCAtlasNode.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
cc.AtlasNode#ctor(tile, tileWidth, tileHeight, itemsToRender)
Creates a cc.AtlasNode with an Atlas file the width and height of each item and the quantity of items to render
|
Class Detail
cc.AtlasNode#ctor(tile, tileWidth, tileHeight, itemsToRender)
Creates a cc.AtlasNode with an Atlas file the width and height of each item and the quantity of items to render
var node = new cc.AtlasNode("pathOfTile", 16, 16, 1);
- Parameters:
- {String} tile
- {Number} tileWidth
- {Number} tileHeight
- {Number} itemsToRender