コード例 #1
0
ファイル: Game1.cs プロジェクト: adrientoub/CrystalGate
        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();
        }