Ejemplo n.º 1
0
		public Game(Window window)
		{
			menu = new MainMenu();
			//ncrunch: no coverage start
			menu.InitGame += () =>
			{
				menu.Hide();
				StartGame();
			}; //ncrunch: no coverage end
			menu.QuitGame += window.CloseAfterFrame;
			window.Title = "Blocks";
		}
Ejemplo n.º 2
0
 public Game(Window window)
 {
     content = new FruitBlocksContent();
     menu = new MainMenu(content);
     menu.InitGame += () =>
     {
         //ncrunch: no coverage start
         menu.Hide();
         StartGame();
     }; //ncrunch: no coverage end
     menu.QuitGame += window.CloseAfterFrame;
     window.Title = "Fruit Blocks";
     menu.SwitchContent += SwitchContent;
 }