示例#1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            engine = new Engine(width, height);
            // Create initial players
            engine.AddPlayer("Frodo", teamIndex: 0);
            engine.AddPlayer("Sauron", teamIndex: 1);
            engine.ai1.me = engine.players[1];
            engine.ai2.me = engine.players[0];

            graphics.PreferredBackBufferWidth = 1280;
            graphics.PreferredBackBufferHeight = 720;

            IsMouseVisible = true;
            //graphics.ToggleFullScreen(); // activate full screen mode. toggle with alt + enter
        }