Пример #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            if (!isTest)
                graphics.IsFullScreen = true;
            this.IsMouseVisible = true;
            int width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
            int height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
            graphics.PreferredBackBufferWidth = width;
            graphics.PreferredBackBufferHeight = height;
            Content.RootDirectory = "Content";

            scene = new SceneEngine2.SceneHandler();
            SceneEngine2.SceneHandler.content = Content;
            exit = false;

            SceneEngine2.MenuOptions.isFullscreen = !graphics.IsFullScreen;

            GameText.initGameText();
        }
Пример #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            if (!isTest)
            {
                graphics.IsFullScreen = true;
            }
            this.IsMouseVisible = true;
            int width  = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
            int height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;

            graphics.PreferredBackBufferWidth  = width;
            graphics.PreferredBackBufferHeight = height;
            Content.RootDirectory = "Content";

            scene = new SceneEngine2.SceneHandler();
            SceneEngine2.SceneHandler.content = Content;
            exit = false;

            SceneEngine2.MenuOptions.isFullscreen = !graphics.IsFullScreen;

            GameText.initGameText();
        }