Esempio n. 1
0
        public override void Initialize()
        {
            m_color             = Color.Black;
            characternamestring = "";

            m_characterinputs = new List <EnterNameInputButton>();
            m_characterinputs.Add(new EnterNameInputButton(m_upbuttonTexture, m_downbuttonTexture, new Vector2(300, 200), m_spritefont));
            m_characterinputs.Add(new EnterNameInputButton(m_upbuttonTexture, m_downbuttonTexture, new Vector2(400, 200), m_spritefont));
            m_characterinputs.Add(new EnterNameInputButton(m_upbuttonTexture, m_downbuttonTexture, new Vector2(500, 200), m_spritefont));
            m_submitscore   = new Button(m_submitbuttonTexture, new Vector2(260, 330));
            SubmitHighscore = new HighscoreFile();
        }
Esempio n. 2
0
        public override void Initialize()
        {
            renderpositionx = 50;
            m_color         = Color.Black;
            m_backButton    = new MenuButton(m_backbtnsprite, new Vector2(0, 400), MenuButton.MenuNav.MAINMENU, m_graphics);
            m_highscorefile = new HighscoreFile();
            m_highscorefile.SortHighScores();

            m_HighscoreCount = m_highscorefile.m_playerScores.Count();
            if (m_HighscoreCount > 10)
            {
                m_HighscoreCount = 10;
            }
        }