public ScoreLabel(GameWrapper i_Game, PlayerShip i_Player) : base(i_Game) { m_PlayerIndex = 0; m_Player = i_Player; m_Player.ScoreChanged += player_ScoreChanged; m_Label = new CalibriLabel(i_Game); }
public GameOverScreen(GameWrapper i_Game, GameOverEventArgs i_GameInfo) : base(i_Game) { this.IsModal = true; this.BlendState = BlendState.NonPremultiplied; m_GameInfo = i_GameInfo; m_Score = new CalibriLabel(i_Game); m_Instructions = new CalibriLabel(i_Game); m_GameInfoLabel = new CalibriLabel(i_Game, eFontSize.Large); Add(m_Score); Add(m_GameInfoLabel); Add(m_Instructions); updateGameInfo(); defineInstructionsMessage(); }
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); }