public HoneycombRush() { // Initialize sound system AudioManager.Initialize(this); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; #if WINDOWS_PHONE // Frame rate is 30 fps by default for Windows Phone. TargetElapsedTime = TimeSpan.FromTicks(333333); graphics.IsFullScreen = true; screenManager = new ScreenManager(this, Vector2.One); #elif XBOX graphics.PreferredBackBufferHeight = 720; graphics.PreferredBackBufferWidth = 1280; screenManager = new ScreenManager(this, Vector2.One); #elif WINDOWS graphics.PreferredBackBufferHeight = 480; graphics.PreferredBackBufferWidth = 800; // Make the game windowed graphics.IsFullScreen = false; IsMouseVisible = true; Components.Add(new GamerServicesComponent(this)); Vector2 scaleVector = new Vector2(graphics.PreferredBackBufferWidth / 1280f, graphics.PreferredBackBufferHeight / 720f); UIConstants.SetScale(scaleVector); // Create a new instance of the Screen Manager. Have all drawing scaled from 720p to the PC's resolution screenManager = new ScreenManager(this, scaleVector); #endif screenManager.AddScreen(new BackgroundScreen("titleScreen"), null); screenManager.AddScreen(new MainMenuScreen(), null); Components.Add(screenManager); }
public HoneycombRush() { // Initialize sound system AudioManager.Initialize(this); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; // Frame rate is 30 fps by default for Windows Phone. TargetElapsedTime = TimeSpan.FromTicks(333333); graphics.IsFullScreen = true; // Create a new instance of the Screen Manager screenManager = new ScreenManager(this); screenManager.AddScreen(new BackgroundScreen("titleScreen"), null); screenManager.AddScreen(new MainMenuScreen(), PlayerIndex.One); Components.Add(screenManager); }