/// <summary> /// Create a new RolePlayingGame object. /// </summary> public RolePlayingGame() { // initialize the graphics system graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 1280; graphics.PreferredBackBufferHeight = 720; // configure the content manager Content.RootDirectory = "Content"; // add a gamer-services component, which is required for the storage APIs Components.Add(new GamerServicesComponent(this)); // add the audio manager AudioManager.Initialize(this, @"Content\Audio\RpgAudio.xgs", @"Content\Audio\Wave Bank.xwb", @"Content\Audio\Sound Bank.xsb"); // add the screen manager screenManager = new ScreenManager(this); Components.Add(screenManager); }
/// <summary> /// Create a new RolePlayingGame object. /// </summary> public RolePlayingGame() { // initialize the graphics system graphics = new GraphicsDeviceManager(this); StaticContent = new ContentManager(this.Services); // configure the content manager Content.RootDirectory = "Content"; StaticContent.RootDirectory = "Content"; graphics.IsFullScreen = true; TargetElapsedTime = TimeSpan.FromTicks(333333); graphics.PreferredBackBufferWidth = 800; graphics.PreferredBackBufferHeight = 480; // add the audio manager AudioManager.Initialize(this); // add the screen manager screenManager = new ScreenManager(this); Components.Add(screenManager); }