Beispiel #1
0
        public override void LoadContent()
        {
            _primitiveBatch.LoadContent();

            _scene = _content.Load<Scene>("maps/level");
            _playerTexture = _content.Load<Texture2D>("textures/player");

            _player.LoadContent(_content);

            _scene.Initialize();
            _scene.LoadContent(_content);

            _camera.SetFocus(_player);
            _camera.Initialize(_scene.Map.GetSizeInPixels());
        }
Beispiel #2
0
 public override void Update(GameTime gameTime, Scene scene)
 {
     _sprite.Update(gameTime);
 }