Пример #1
0
 protected override void LoadContent()
 {
     _spriteBatch   = new SpriteBatch(GraphicsDevice);
     _tileTexture   = Content.Load <Texture2D>("tile");
     _jumperTexture = Content.Load <Texture2D>("jumper");
     _player        = new Player(_jumperTexture, new Vector2(80, 80), _spriteBatch);
     _board         = new Board(_spriteBatch, _tileTexture, 15, 10);
     _debugFont     = Content.Load <SpriteFont>("DebugFont");
     _camera        = new Camera(GraphicsDevice);
     _camera.LoadContent(GraphicsDevice);
 }