예제 #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            // to get landscape viewable
            camera.Draw(landscape);

            base.Draw(gameTime);
        }
예제 #2
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            SpriteBatch.Begin();

            foreach (var component in levelDrawComponenents)
            {
                _camera.Draw(component, gameTime);
            }
            SpriteBatch.End();
        }