Exemple #1
0
        /// <summary>
        /// Load your graphics content.
        /// </summary>
        protected override void LoadContent()
        {
            font = new FontManager(graphics.GraphicsDevice);
            screen = new ScreenManager(this, font, game);

            font.LoadContent(Content);
            game.LoadContent(graphics.GraphicsDevice, Content);
            screen.LoadContent(graphics.GraphicsDevice, Content);
        }
Exemple #2
0
 // constructor
 public ScreenLevel(ScreenManager manager, GameManager game)
 {
     screenManager = manager;
     gameManager = game;
 }
        Texture2D textureSelectCancel; // select and cancel texture

        #endregion Fields

        #region Constructors

        // constructor
        public ScreenPlayer(ScreenManager manager, GameManager game)
        {
            screenManager = manager;
            gameManager = game;
        }
Exemple #4
0
        Texture2D texturePlayerWin; // texture with winning player number

        #endregion Fields

        #region Constructors

        // constructor
        public ScreenEnd(ScreenManager manager, GameManager game)
        {
            screenManager = manager;
            gameManager = game;
        }
Exemple #5
0
 // constructor
 public ScreenIntro(ScreenManager manager, GameManager game)
 {
     screenManager = manager;
     gameManager = game;
 }
Exemple #6
0
        /// <summary>
        /// Unload your graphics content.
        /// </summary>
        protected override void UnloadContent()
        {
            screen.UnloadContent();
            game.UnloadContent();
            font.UnloadContent();

            screen = null;
            font = null;
        }
Exemple #7
0
 // constructor
 public ScreenIntro(ScreenManager manager, GameManager game)
 {
     screenManager = manager;
     gameManager   = game;
 }