Ejemplo n.º 1
0
        public override void LoadContent(Microsoft.Xna.Framework.Content.ContentManager pContent)
        {
            m_pFont = pContent.Load<SpriteFont>("GFX\\Fonts\\defaultFont");
            m_pHighscore = new HighScoreManager();
            m_pHighscore.LoadContent(pContent);

            /*
             * Vi ska väl se ifall det var något highscore kanske?
             */
            if (this.Parent.Settings.PlayerOneScore > this.Parent.Settings.PlayerTwoScore)
            {
                m_nPlayerOnePosition = (m_pHighscore.AddHighscore(this.Parent.Settings.PlayerOneName, this.Parent.Settings.PlayerOneWave, this.Parent.Settings.PlayerOneScore, this.Parent.Settings.PlayerOnePlayTime));
                m_nPlayerTwoPosition = (m_pHighscore.AddHighscore(this.Parent.Settings.PlayerTwoName, this.Parent.Settings.PlayerTwoWave, this.Parent.Settings.PlayerTwoScore, this.Parent.Settings.PlayerTwoPlayTime));
            }
            else
            {
                m_nPlayerTwoPosition = (m_pHighscore.AddHighscore(this.Parent.Settings.PlayerTwoName, this.Parent.Settings.PlayerTwoWave, this.Parent.Settings.PlayerTwoScore, this.Parent.Settings.PlayerTwoPlayTime));
                m_nPlayerOnePosition = (m_pHighscore.AddHighscore(this.Parent.Settings.PlayerOneName, this.Parent.Settings.PlayerOneWave, this.Parent.Settings.PlayerOneScore, this.Parent.Settings.PlayerOnePlayTime));
            }

            base.LoadContent(pContent);
        }