예제 #1
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);
            // My Objects
            _jumper = new Jumper(Content.Load <Texture2D>("Jumper"), new Vector2(80, 80), _spriteBatch);
            var _tileTextures = new Texture2D[] {
                Content.Load <Texture2D>("Tile"),
                Content.Load <Texture2D>("TileTop")
            };

            _board     = new Board(15, 10, _tileTextures, _spriteBatch);
            _debugFont = Content.Load <SpriteFont>("DebugFont");
        }