Ejemplo n.º 1
0
        public ActionSkewRotateScale()
        {
            box = new CCDrawNode();
            box.DrawRect(new CCRect (0.0f, 0.0f, 100.0f, 100.0f), new CCColor4B(255, 255, 0, 255));
            box.AnchorPoint = new CCPoint(0, 0);

            uL = new CCDrawNode();
            uL.DrawRect(new CCRect (0.0f, 0.0f, markrside, markrside), new CCColor4B(255, 0, 0, 255));
            uL.AnchorPoint = new CCPoint(0, 0);
            box.AddChild(uL);

            uR = new CCDrawNode();
            uR.DrawRect(new CCRect (0.0f, 0.0f, markrside, markrside), new CCColor4B(0, 0, 255, 255));
            uR.AnchorPoint = new CCPoint(0, 0);
            box.AddChild(uR);

            AddChild(box);

            actionTo = new CCSkewTo (2, 0.0f, 2.0f);
            rotateTo = new CCRotateTo (2, 61.0f);
            actionScaleTo = new CCScaleTo(2, -0.44f, 0.47f);

            actionScaleToBack = new CCScaleTo(2, 1.0f, 1.0f);
            rotateToBack = new CCRotateTo (2, 0);
            actionToBack = new CCSkewTo (2, 0, 0);
        }
Ejemplo n.º 2
0
        public override void OnEnter()
        {
            base.OnEnter(); 

            CenterSprites(3);

            var actionTo = new CCSkewTo (2, 37.2f, -37.2f);
            var actionToBack = new CCSkewTo (2, 0, 0);
            var actionBy = new CCSkewBy (2, 0.0f, -90.0f);
            var actionBy2 = new CCSkewBy (2, 45.0f, 45.0f);
            var actionByBack = actionBy.Reverse();

            Tamara.RunActions(actionTo, actionToBack);
            Grossini.RunActions(actionBy, actionByBack);

            Kathia.RunActions(actionBy2, actionBy2.Reverse());
        }