Beispiel #1
0
 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;
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 private void ToMainMenu(object sender, RoutedEventArgs e)
 {
     MainMenu mainMenu = new MainMenu(parent);
     parent.Children.Add(mainMenu);
     parent.Children.Remove(this);
 }