Exemplo n.º 1
0
        public LoadingScreen(GameWrapper i_Game, int i_LevelNumber)
            : base(i_Game)
        {
            m_Game = i_Game;

            m_TimeCount = k_NumOfSecondsToCount;

            m_LevelNumber = new CalibriLabel(i_Game, eFontSize.Large);
            m_LevelNumber.Initialize();
            m_LevelNumber.Text = "Level " + i_LevelNumber.ToString();
            //m_LevelNumber.Position = new Vector2((Game.GraphicsDevice.Viewport.Width / 2) - (m_LevelNumber.Bounds.Width / 2),
            //                                      (Game.GraphicsDevice.Viewport.Height / 2) - (m_LevelNumber.Bounds.Height));
            m_LevelNumber.CenterToViewPort();
            Add(m_LevelNumber);

            m_Countdown = new CalibriLabel(i_Game, eFontSize.Large);
            m_Countdown.Initialize();
            m_Countdown.Color = Color.White;
            m_Countdown.Position = new Vector2((Game.GraphicsDevice.Viewport.Width / 2) - (m_Countdown.Bounds.Width / 2),
                                                m_LevelNumber.Bounds.Y + m_LevelNumber.Bounds.Height + 10);
            Add(m_Countdown);
        }