Exemplo n.º 1
0
 public MainPage()
 {
     InitializeComponent();
     game = new LabGame(this);
     game.Run(this);
     mainMenu = new MainMenu(this);
     this.Children.Add(mainMenu);
 }
Exemplo n.º 2
0
 public MainPage()
 {
     InitializeComponent();
     game = new Project2Game(this);
     game.Run(this);
     mainMenu = new MainMenu(this);
     this.Children.Add(mainMenu);
     GameElements.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
 private void ToMainMenu(object sender, RoutedEventArgs e)
 {
     MainMenu mainMenu = new MainMenu(parent);
     parent.Children.Add(mainMenu);
     parent.Children.Remove(this);
 }