コード例 #1
0
ファイル: Effect3.cs プロジェクト: KevinHeyer/CocosSharp
        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());
        }
コード例 #2
0
ファイル: Effect3.cs プロジェクト: h7ing/CocosSharp
        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());
        }
コード例 #3
0
ファイル: CCWaves.cs プロジェクト: zhuruvl/CocosSharp
 public CCWavesState(CCWaves action, CCNode target) : base(action, target)
 {
     Vertical   = action.Vertical;
     Horizontal = action.Horizontal;
 }
コード例 #4
0
ファイル: CCWaves.cs プロジェクト: h7ing/CocosSharp
 public CCWavesState (CCWaves action, CCNode target) : base (action, target)
 {
     Vertical = action.Vertical;
     Horizontal = action.Horizontal;
 }