Esempio n. 1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // Load font.
            font     = Content.Load <SpriteFont>("arial");
            gameFont = Content.Load <BitmapFont>("squares");

            // Load tile textures
            tileRegistry.LoadTextures();

            // Load view content
            viewRegistry.LoadContent(Content);
        }