ActionProject.GameLayer.GameLayer C# (CSharp) Method

GameLayer() public method

public GameLayer ( ) : System
return System
		public GameLayer ()
		{

			drawNodeRoot = new CCNode {
				PositionX = 500f,
				PositionY = 350f
			};

			AddChild (drawNodeRoot);

			CCDrawNode circle;
			circle = new CCDrawNode ();
			circle.DrawSolidCircle (CCPoint.Zero, DefaultCircleRadius, CCColor4B.Red);
			drawNodeRoot.AddChild (circle);

			lineNode = new LineNode ();
			drawNodeRoot.AddChild (lineNode);

			variableLabel = new CCLabel ("Hello", "Arial", 46f, CCLabelFormat.SystemFont);
			variableLabel.HorizontalAlignment = CCTextAlignment.Left;
			variableLabel.AnchorPoint = new CCPoint (0f, 0f);
			variableLabel.PositionX = 48f;
			variableLabel.PositionY = 390f;
			AddChild (variableLabel);

			easingLabel = new CCLabel ("Hello", "Arial", 46f, CCLabelFormat.SystemFont);
			easingLabel.HorizontalAlignment = CCTextAlignment.Left;
			easingLabel.AnchorPoint = new CCPoint (0f, 0f);
			easingLabel.PositionX = 48f;
			easingLabel.PositionY = 330f;
			AddChild (easingLabel);

			inOutLabel = new CCLabel ("Hello", "Arial", 46f, CCLabelFormat.SystemFont);
			inOutLabel.HorizontalAlignment = CCTextAlignment.Left;
			inOutLabel.AnchorPoint = new CCPoint (0, 0);
			inOutLabel.PositionX = 48f;
			inOutLabel.PositionY = 270f;
			AddChild (inOutLabel);

			UpdateLabels ();
		}