Exemple #1
0
        public void Draw()
        {
            for (int i = 0; i < mTheFloorSet.Count; i++)
            {
                mTheFloorSet[i].Draw();
            }

            mTheSign.Draw();
            String msg = (mTheSign.Position.X / 20).ToString() + "m";

            FontSupport.PrintStatusAt(mTheSign.Position, msg, Color.Black);

            for (int i = 0; i < mTheSeaweedTallSet.Count; i++)
            {
                mTheSeaweedTallSet[i].Draw();
            }

            for (int i = 0; i < mTheSeaweedSmallSet.Count; i++)
            {
                mTheSeaweedSmallSet[i].Draw();
            }

            mEnemies.DrawSet();
            mFishFood.Draw();
        }
Exemple #2
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 public void DrawGame()
 {
     mHero.Draw();
     mEnemies.DrawSet();
     FontSupport.PrintStatus("Caught=" + mNumCaught.ToString(), null);
 }