示例#1
0
        public HexMageGame()
        {
            Instance  = this;
            _graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = 1280,
                PreferredBackBufferHeight = 1024
            };

            _assetManager = new AssetManager(Content, _graphics.GraphicsDevice);
            _camera       = new Camera2D(_inputManager);

            Content.RootDirectory = "Content";
        }
示例#2
0
        static void Main(string[] args)
        {
            if (!ProcessArguments(args))
            {
                return;
            }

            Constants.MctsLogging = true;
            var cts = new CancellationTokenSource();

            CoordRadiusCache.Instance.PrecomputeUpto(50);

            using (var game = new HexMageGame())
                game.Run();

            cts.Cancel();
        }