public War() { graphics = new GraphicsDeviceManager(this); IntroComponent = new IntroComponent(this); CreditsComponent = new CreditsComponent(this); InstructionsComponent = new InstructionsComponent(this); GameSetComponent = new GameSetComponent(this); PlayableComponent = new PlayableComponent(this); Components.Add(IntroComponent); Components.Add(CreditsComponent); Components.Add(InstructionsComponent); Components.Add(GameSetComponent); Components.Add(PlayableComponent); CurrentState = GameState.Intro; // GotoState(); Content.RootDirectory = "Content"; // this.graphics.PreferredBackBufferWidth = Global.WIDTH; // this.graphics.PreferredBackBufferHeight = Global.HEIGHT; // this.graphics.ApplyChanges(); graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>( graphics_PreparingDeviceSettings); this.graphics.IsFullScreen = false; this.IsMouseVisible = true; startMainMusic = true; }
public War() { graphics = new GraphicsDeviceManager(this); IntroComponent = new IntroComponent(this); CreditsComponent = new CreditsComponent(this); Components.Add(IntroComponent); Components.Add(CreditsComponent); CurrentState = GameState.Intro; // GotoState(); Content.RootDirectory = "Content"; this.graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; this.graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; this.graphics.IsFullScreen = true; this.IsMouseVisible = true; }