Пример #1
0
 public void Draw(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice)
 {
     spriteBatch.Begin();
     spriteBatch.Draw(Bg, Vector2.Zero, Color.White);
     spriteBatch.End();
     DayNightCycle.Draw(spriteBatch);
     //Camera 2D
     spriteBatch.Begin(SpriteSortMode.Deferred,
                       null, null, null, null, null,
                       cam.get_transformation(graphicsDevice));
     Tiles.DrawTiles(spriteBatch, Map.Chunks);
     Player1.Draw(spriteBatch);
     spriteBatch.End();
     //EndCamera
     EastAndWest.DrawEaW(spriteBatch);
     if (MapShown == true)
     {
         MapScreen.Draw(spriteBatch);
     }
 }