public XmasHell() #endif { Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; #if ANDROID Graphics.SupportedOrientations = DisplayOrientation.Portrait; _activity = activity; // Used for bloom effect Graphics.PreferredDepthStencilFormat = DepthFormat.Depth16; Graphics.IsFullScreen = true; Graphics.ApplyChanges(); #else Graphics.IsFullScreen = false; Window.AllowUserResizing = true; IsMouseVisible = true; //Graphics.PreferredBackBufferWidth = GameConfig.VirtualResolution.X; //Graphics.PreferredBackBufferHeight = GameConfig.VirtualResolution.Y; Graphics.PreferredBackBufferWidth = 480; Graphics.PreferredBackBufferHeight = 853; // Unlock FPS //IsFixedTimeStep = false; //Graphics.SynchronizeWithVerticalRetrace = false; #endif GameManager = new GameManager(this); SpriteBatchManager = new SpriteBatchManager(this); PerformanceManager = new PerformanceManager(this); }
public XmasHell(XmasHellActivity activity)