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

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

            var background = new CCSprite(batchnode.Texture, new RectangleF(0, 0, 320, 480))
            {
                Position = new PointF(160, 240)
            };

            batchnode.Add(background);
        }