Пример #1
0
        /// <summary>
        /// Load your graphics content.
        /// </summary>
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);

            backgroundTexture = Content.Load <Texture2D>("Textures/ground");
            skyTexture        = Content.Load <Texture2D>("Textures/sky");
            endObjectTexture  = Content.Load <Texture2D>("Textures/log");

            tahomaFont = Content.Load <SpriteFont>("Fonts/TahomaFont");

            playerCatapult.Initialize();
        }
Пример #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            SpriteBatch       = new SpriteBatch(GraphicsDevice);
            backGroundTexture = Content.Load <Texture2D>("Textures/ground");
            skyTexture        = Content.Load <Texture2D>("Textures/sky");
            endObjectTexture  = Content.Load <Texture2D>("Textures/log");

            tahomaFont = Content.Load <SpriteFont>("Fonts/TahomaFont");


            playerCatapult.Initialize();


            // TODO: use this.Content to load your game content here
        }