示例#1
0
        public static CCSpriteBatchNode batchNodeWithFile(string fileImage)
        {
            CCSpriteBatchNode node = new CCSpriteBatchNode();

            node.initWithFile(fileImage, 0x1d);
            return(node);
        }
示例#2
0
        public static CCSpriteBatchNode batchNodeWithFile(string fileImage, int capacity)
        {
            CCSpriteBatchNode node = new CCSpriteBatchNode();

            node.initWithFile(fileImage, capacity);
            return(node);
        }
示例#3
0
        /// <summary>
        ///  creates a CCSpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) with a default capacity of 29 children.
        ///  The capacity will be increased in 33% in runtime if it run out of space.
        ///  The file will be loaded using the TextureMgr.
        /// </summary>
        public static CCSpriteBatchNode batchNodeWithFile(string fileImage)
        {
            CCSpriteBatchNode batchNode = new CCSpriteBatchNode();

            batchNode.initWithFile(fileImage, defaultCapacity);

            return(batchNode);
        }
示例#4
0
        /// <summary>
        ///  creates a CCSpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) with a default capacity of 29 children.
        ///  The capacity will be increased in 33% in runtime if it run out of space.
        ///  The file will be loaded using the TextureMgr.
        /// </summary>
        public static CCSpriteBatchNode batchNodeWithFile(string fileImage)
        {
            CCSpriteBatchNode batchNode = new CCSpriteBatchNode();
            batchNode.initWithFile(fileImage, defaultCapacity);

            return batchNode;
        }