Exemple #1
0
        public void LoadMainScreen()
        {
            _mainscreen     = null;
            _gameoverscreen = null;

            _mainscreen = new MainScreen();
            _mainscreen.AddTitle(_tstorage["background_intro"], new Vector2(450, 100), 2, 1024, 600);

            _mainscreen.AddButton(new Button
                                  (
                                      _tstorage["playpng"],
                                      new Vector2(760, 500),
                                      400, 110,
                                      CGameState.StartGame
                                  ));

            _mainscreen.AddButton(new Button
                                  (
                                      _tstorage["exitpng"],
                                      new Vector2(760, 650),
                                      400, 110,
                                      CGameState.Quit
                                  ));

            _mainscreen.AddButton(new Button
                                  (
                                      _tstorage["credits"],
                                      new Vector2(760, 800),
                                      400, 110,
                                      CGameState.CreditsScreen
                                  ));
        }