/// <summary>
        /// Load graphics content for the game.
        /// </summary>
        public override void LoadContent()
        {
            Initialize();

            if (content == null)
                content = new ContentManager(ScreenManager.Game.Services, "Content");

            gameFont = content.Load<SpriteFont>("FPSFont");
            spriteBatch = new SpriteBatch(ScreenManager.Game.GraphicsDevice);
            backgroundBatch = new SpriteBatch(ScreenManager.Game.GraphicsDevice);
            background = ScreenManager.Game.Content.Load<Texture2D>("GameBackground");
            tile = ScreenManager.Game.Content.Load<Model>("tile");
            pieceRed = ScreenManager.Game.Content.Load<Model>("pawnred");
            pieceWhite = ScreenManager.Game.Content.Load<Model>("pawnwhite");

            manager = new BoardManager(this);
            manager.StartGame((Difficulty)Karo.Gui.Properties.Settings.Default.Difficulty);
            ScreenManager.Game.Components.Add(manager);
            if (UIConnector.IsTwoAI())
                thread.Start();

            // once the load has finished, we use ResetElapsedTime to tell the game's
            // timing mechanism that we have just finished a very long frame, and that
            // it should not try to catch up.
            ScreenManager.Game.ResetElapsedTime();
        }
Exemple #2
0
 public Letters(GameplayScreen game, BoardManager manager)
     : base(game.ScreenManager.Game)
 {
     this.game = game;
     this.manager = manager;
 }