public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferHeight = 1080; graphics.PreferredBackBufferWidth = 1920; //graphics.SynchronizeWithVerticalRetrace = true; graphics.ToggleFullScreen(); Content.RootDirectory = "Content"; cManager = Content; penumbra = new PenumbraComponent(this); penumbra.Lights.Add(light); penumbra.AmbientColor = new Color(0.93f, 0.93f, 0.93f, 1); //penumbra.AmbientColor = new Color(0.2f, 0.2f, 0.2f, 1); cam = new Camera2d(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { Console.WriteLine("test"); // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); GameConfig.graphics = GraphicsDevice; GameConfig.spriteBatch = spriteBatch; MyraEnvironment.Game = this; //Загрузка текстур Textures.LoadTextures(GraphicsDevice); //Создание GUI menu = new GUI.GUI(graphics); //Создание карты //map = new Map(20, GraphicsDevice, spriteBatch); camera = new Camera2d(); }