Ejemplo n.º 1
0
        public override void OnEnter()
        {
			base.OnEnter();

			var waves = new CCWaves(5, new CCGridSize(15, 10), 5, 20, true, false);
			var shaky = new CCShaky3D(5, new CCGridSize(15, 10), 4, false);

			Target1.RepeatForever(waves);
			Target2.RepeatForever(shaky);

            // moving background. Testing issue #244
			var move = new CCMoveBy (3, new CCPoint(200, 0));

            bgNode.RepeatForever(move, move.Reverse());
        }
Ejemplo n.º 2
0
        public override void OnEnter()
        {
			base.OnEnter();

			//var bg = this[EffectAdvanceScene.kTagBackground];
			//var target1 = bg[EffectAdvanceScene.kTagSprite1];
			//var target2 = bg[EffectAdvanceScene.kTagSprite2];

			var waves = new CCWaves(5, new CCGridSize(15, 10), 5, 20, true, false);
			var shaky = new CCShaky3D(5, new CCGridSize(15, 10), 4, false);

			grossini.RepeatForever(waves);
			tamara.RepeatForever(shaky);

            // moving background. Testing issue #244
			var move = new CCMoveBy (3, new CCPoint(200, 0));

            bgNode.RepeatForever(move, move.Reverse());
        }