예제 #1
0
        public StressTest2()
        {
			var sublayer = new CCLayer();

			var sp1 = new CCSprite(TestResource.s_pPathSister1);
            

			var move = new CCMoveBy (3, new CCPoint(350, 0));
			var move_ease_inout3 = new CCEaseInOut(move, 2.0f);
			var move_ease_inout_back3 = move_ease_inout3.Reverse();
			var seq3 = new CCSequence(move_ease_inout3, move_ease_inout_back3);
			sp1.RepeatForever(seq3);

            sublayer.AddChild(sp1, 1, CocosNodeTestStaticLibrary.kTagSprite2);

			var fire = new CCParticleFire(CCPoint.Zero) { Tag = CocosNodeTestStaticLibrary.kTagSprite3 };
            fire.Texture = (CCTextureCache.SharedTextureCache.AddImage("Images/fire"));

			fire.RepeatForever(seq3);
            sublayer.AddChild(fire, 2);

            Schedule(shouldNotLeak, 6.0f);

            AddChild(sublayer, 0, CocosNodeTestStaticLibrary.kTagSprite1);
        }
예제 #2
0
 public CCEaseInOutState (CCEaseInOut action, CCNode target) : base (action, target)
 {
 }
예제 #3
0
        public override void OnEnter()
        {
            base.OnEnter();

            var size = Layer.VisibleBoundsWorldspace.Size;

            var move = new CCMoveBy (3, new CCPoint(size.Width - 130, 0));

            var move_ease_inout1 = new CCEaseInOut(move, 0.65f);
            var move_ease_inout_back1 = move_ease_inout1.Reverse();

            var move_ease_inout2 = new CCEaseInOut(move, 1.35f);
            var move_ease_inout_back2 = move_ease_inout2.Reverse();

            var move_ease_inout3 = new CCEaseInOut(move, 1.0f);
            var move_ease_inout_back3 = move_ease_inout3.Reverse() as CCFiniteTimeAction;

            var delay = new CCDelayTime (0.25f);

            var seq1 = new CCSequence(move_ease_inout1, delay, move_ease_inout_back1, delay);
            var seq2 = new CCSequence(move_ease_inout2, delay, move_ease_inout_back2,
                                                delay);
            var seq3 = new CCSequence(move_ease_inout3, delay, move_ease_inout_back3,
                                                delay);

            m_tamara.RunAction(new CCRepeatForever ((CCFiniteTimeAction)seq1));
            m_kathia.RunAction(new CCRepeatForever ((CCFiniteTimeAction)seq2));
            m_grossini.RunAction(new CCRepeatForever ((CCFiniteTimeAction)seq3));
        }
예제 #4
0
 public CCEaseInOutState(CCEaseInOut action, CCNode target) : base(action, target)
 {
 }