Beispiel #1
0
        public static void Draw()
        {
            String strScore1  = ScoreManager.GetScore(ScoreType.Player1Score).ToString().PadLeft(4, '0');
            String strScore2  = ScoreManager.GetScore(ScoreType.Player2Score).ToString().PadLeft(4, '0');
            String strHiScore = ScoreManager.GetScore(ScoreType.HiScore).ToString().PadLeft(4, '0');
            String strCredits = ScoreManager.GetScore(ScoreType.Credits).ToString().PadLeft(2, '0');

            DrawString("SCORE< 1 >          HI-SCORE          SCORE< 2 >", 10.0f, 1004.0f);
            DrawString(String.Format("   {0}               {1}               {2}", strScore1, strHiScore, strScore2), 10.0f, 970.0f);
            DrawString(String.Format("CREDIT {0}", strCredits), 700.0f, 50.0f);
            GameManager.Draw();
        }
Beispiel #2
0
        public override void Draw(Game pGame)
        {
            CurrentPlayer currentPlayer = ScoreManager.GetCurrentPlayer();
            String        strLives      = String.Empty;

            if (currentPlayer == CurrentPlayer.Player1)
            {
                strLives = ScoreManager.GetScore(ScoreType.Player1Lives).ToString();
            }
            else
            {
                strLives = ScoreManager.GetScore(ScoreType.Player2Lives).ToString();
            }
            FontManager.DrawString(String.Format(" {0}", strLives), 32.0f, 50.0f);
        }