예제 #1
0
파일: GameScene.cs 프로젝트: tryparse/snake
        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();
        }