Exemple #1
0
        protected override void LoadContent()
        {
            font = new BitmapFont(game, "fonts\\courier.xml");
            font.Reset(GraphicsDevice);

            base.LoadContent();
        }
Exemple #2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(Game.GraphicsDevice);

            content = Game.Content;

            bitmapFont = new BitmapFont(Game, "fonts\\FZHei_17_Bold.xml");
            bitmapFont.Reset(Game.GraphicsDevice);

            transitionEffect = content.Load<Effect>("effects\\disappear.fxc");
            transitionShader = content.Load<Texture2D>("shaders\\default.png");

            // Tell each of the screens to load their content.
            foreach (GameScreen screen in screens)
            {
                screen.InitializeControls();
                screen.LoadContent();
            }
        }