Exemple #1
0
        private void DrawGrassAndFood(Vector2 pointOfView, float viewRadius)
        {
            _spriteBatch.Begin(transformMatrix: GraphicsSystem.Camera2D.GetViewMatrix());

            _gameFieldComponent.DrawGrass(_spriteBatch, pointOfView, viewRadius);
            _foodManager.Draw(_spriteBatch, pointOfView, viewRadius);

            _spriteBatch.End();
        }