public Game1() { Graphics = new GraphicsDeviceManager(this); Graphics.PreferredBackBufferWidth = 1366; Graphics.PreferredBackBufferHeight = 768; Graphics.PreferMultiSampling = true; Graphics.SynchronizeWithVerticalRetrace = true; Graphics.ApplyChanges(); Content.RootDirectory = "Content"; Instance = this; Setting = new Setting(); Camera = new Camera(); Children = new List<GameEntity>(); }
protected override void Initialize() { Setting = new Setting(); Camera = new Camera(); Children = new List<GameEntity>(); Skybox = new Skybox(); Sound = new Sound(); Sun = new Sun(0, 0, 0); Earth = new Earth(); Moon = new Moon(); Children.Add(Sound); Children.Add(Sun); Children.Add(Earth); Children.Add(Moon); Children.Add(new SatelliteManager()); Children.Add(new Monitor()); base.Initialize(); }