Exemple #1
0
        public Issue1288()
        {
            spr = new CCSprite("Images/grossini");
            AddChild(spr);

            var act1 = new CCMoveBy (0.5f, new CCPoint(100, 0));
            var act2 = (CCMoveBy) act1.Reverse();
            var act3 = new CCSequence(act1, act2);
            act4 = new CCRepeat (act3, 2);
        }
Exemple #2
0
        public ActionRotateJerk()
        {
            var seq = new CCSequence(
                new CCRotateTo (0.5f, -20),
                new CCRotateTo (0.5f, 20));

            rep1 = new CCRepeat (seq, 10);
            rep2 = new CCRepeatForever (seq);
        }
Exemple #3
0
        public ActionReverseSequence2()
        {
            var move1 = new CCMoveBy (1, new CCPoint(250, 0));
            var move2 = new CCMoveBy (1, new CCPoint(0, 50));
            var toggle = new CCToggleVisibility();
            var seq = new CCSequence(move1, toggle, move2, toggle, move1.Reverse());
            action = new CCRepeat ((new CCSequence(seq, seq.Reverse())), 3);

            var move_tamara = new CCMoveBy (1, new CCPoint(100, 0));
            var move_tamara2 = new CCMoveBy (1, new CCPoint(50, 0));
            var hide = new CCHide();

            seq_tamara = new CCSequence(move_tamara, hide, move_tamara2);
            seq_back = seq_tamara.Reverse();
        }
Exemple #4
0
        public ActionRotateToRepeat()
        {
            var act1 = new CCRotateTo(1, 90);
            var act2 = new CCRotateTo(1, 0);
            var seq = new CCSequence(act1, act2);

            rep1 = new CCRepeatForever(seq);
            rep2 = new CCRepeat(seq, 10);
        }