public MainPage() { InitializeComponent(); game = new LabGame(this); game.Run(this); mainMenu = new MainMenu(this); this.Children.Add(mainMenu); }
public MainPage() { InitializeComponent(); game = new Project2Game(this); game.Run(this); mainMenu = new MainMenu(this); this.Children.Add(mainMenu); GameElements.Visibility = Visibility.Collapsed; }
public MainPage() { InitializeComponent(); game = new GameController(this); game.Run(this); mainMenu = new MainMenu(this); gameOver = new GameOver(this); gameWon = new Winner(this); this.Children.Add(mainMenu); }
public MainPage() { InitializeComponent(); //Loaded += OnLoaded; game = new ProjectGame(this); game.Run(this); mainMenu = new MainMenu(this); //endPage = new EndPage(this); this.Children.Add(mainMenu); InGameView(Visibility.Collapsed); txtCameraPos.Visibility = Visibility.Collapsed; txtCameraTarget.Visibility = Visibility.Collapsed; txtPlayerPos.Visibility = Visibility.Collapsed; }
private void ToMainMenu(object sender, RoutedEventArgs e) { MainMenu mainMenu = new MainMenu(parent); parent.Children.Add(mainMenu); parent.Children.Remove(this); }