Ejemplo n.º 1
0
        public DrawPrimitivesRoundRectSpriteTest()
        {
            TouchMode    = CCTouchMode.OneByOne;
            TouchEnabled = true;
            RoundRectSprite r = new RoundRectSprite(new CCSize(180f, 180f), 5);

            r.Color       = CCColor3B.Yellow;
            r.Position    = CCDirector.SharedDirector.WinSize.Center;
            r.AnchorPoint = CCPoint.AnchorMiddle;
            AddChild(r, 0, kTagRoundRect);
        }
Ejemplo n.º 2
0
 public DrawPrimitivesRoundRectSpriteTest()
 {
     TouchMode = CCTouchMode.OneByOne;
     TouchEnabled = true;
     RoundRectSprite r = new RoundRectSprite(new CCSize(180f, 180f), 5);
     r.Color = CCColor3B.Yellow;
     r.Position = CCDirector.SharedDirector.WinSize.Center;
     r.AnchorPoint = CCPoint.AnchorMiddle;
     AddChild(r, 0, kTagRoundRect);
 }