예제 #1
0
        public void LoadGameOver(int highscore)
        {
            _gameoverscreen = null;

            _gameoverscreen = new GameOverScreen();

            _gameoverscreen.AddTexture
            (
                _tstorage["map"],
                new Vector2(0, 0)
            );

            _gameoverscreen.AddButton(new Button
                                      (
                                          _tstorage["exit2"],
                                          new Vector2(1020, 700),
                                          400, 110,
                                          CGameState.Quit
                                      ));

            _gameoverscreen.AddButton(new Button
                                      (
                                          _tstorage["tryagain"],
                                          new Vector2(500, 698),
                                          400, 110,
                                          CGameState.StartGame
                                      ));

            _gameoverscreen.AddTexture
            (
                _tstorage["highscore"],
                new Vector2(555, 500)
            );

            _gameoverscreen.AddTexture
            (
                _tstorage["gameover"],
                new Vector2(560, 200)
            );

            _gameoverscreen.AddText
            (
                _fstorage["gameover_font"],
                new Vector2(990, 510),
                highscore.ToString()
            );
        }