Пример #1
0
        public PostGameState( int score ) : base()
        {
            m_heading = content.Load<Texture2D>("Images/GameOverTitle");
            m_backgroundSprite = content.Load<Texture2D>("Images/MenuBackground");
            m_indicator = content.Load<Texture2D>("Images/LeftSelector");
            m_scoresText = content.Load<Texture2D>("Images/ScoreText");
            m_nameText = content.Load<Texture2D>("Images/NameText");
            m_acceptText = content.Load<Texture2D>("Images/AcceptText");

            m_indicatorLeftPosition = new Vector2(412, 378);
            m_indicatorRightPosition = new Vector2(448, 378);

            m_blipSound = content.Load<SoundEffect>("Sounds/Blip");
            m_blipVolume = 0.1f;

            m_playerScore = score;
            m_highScoreList = new HighScoresObject();
            m_highScoreList.LoadHighScores();
            m_buttonSelected = 0;

            m_letterInt = new List<int>();
            m_letterInt.Add(0);
            m_letterInt.Add(0);
            m_letterInt.Add(0);

            m_letterString = new List<string>();
            m_letterString.Add("A");
            m_letterString.Add("A");
            m_letterString.Add("A");
        }
        public Leaderboards()
            : base()
        {
            m_titleTexture = content.Load<Texture2D>("Images/LeaderboardsTitle");
            m_backgroundSprite = content.Load<Texture2D>("Images/MenuBackground");
            m_backButtonTexture = content.Load<Texture2D>("Images/BackText");
            m_selectorTexture = content.Load<Texture2D>("Images/LeftSelector");

            m_highScores = new HighScoresObject();
            m_highScores.LoadHighScores();
            m_indicatorLeftPosition = new Vector2(418, 498);
            m_indicatorRightPosition = new Vector2(518, 498);
            m_backButton = new Button(468, 498, 100, 40, m_backButtonTexture);
        }