Beispiel #1
0
		protected override void Load ()
		{
			var components = GameState.Components;
			components.mouse.ButtonPressed += OnMouseButtonPressed;
			components.keyboard.KeyPressed += OnKeyboardKeyPressed;
			
			var surface = GameState.CreateSurface2D ("surface");
			
			tablePlane = GameState.CreateComponent<Plane> ("table.plane");
			tablePlane.ApplyTexture ("table.png");
			surface.Attach (tablePlane);
			
			firstMark = GameState.CreateComponent<Plane> ("firstMark");
			firstMark.ApplyTexture ("ball.png");
			
			secondMark = GameState.CreateComponent<Plane> ("secondMark");
			secondMark.ApplyTexture("x.png");
		}