Ejemplo n.º 1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager (this);

            Content.RootDirectory = "Content";

            graphics.IsFullScreen = true;

            graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;

            this.Deactivated += (object sender, EventArgs e) => {
                var screenHeight = graphics.PreferredBackBufferHeight;
                TicTacToeGame = new TicTacToeGame();
                TicTacToeGame.Init(graphics.PreferredBackBufferWidth, screenHeight, screenHeight / 4);
            };
        }