Esempio n. 1
0
        public MainLayer()
        {
            var batchnode = CCSpriteBatchNode.Create("Images/sprites", 10);

            AddChild(batchnode, -1, (int)Tags.SpriteManager);

            var background = CCSprite.Create(batchnode.Texture, new CCRect(0, 0, 320, 480));

            background.Position = new CCPoint(160, 240);
            batchnode.AddChild(background);
        }