Пример #1
0
        public static void Main(string[] args)
        {
            var kernel = new StandardKernel();

            kernel.Load <Protogame2DIoCModule>();
            kernel.Load <ProtogameAssetIoCModule>();
            AssetManagerClient.AcceptArgumentsAndSetup <GameAssetManagerProvider>(kernel, args);

            using (var game = new GeneratedGame(kernel))
            {
                game.Run();
            }
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var kernel = new StandardKernel();

            kernel.Load <Protogame2DIoCModule>();
            kernel.Load <ProtogameAssetIoCModule>();
            AssetManagerClient.AcceptArgumentsAndSetup <GameAssetManagerProvider>(kernel, null);

            // Create our OpenGL view, and display it
            var g = new GeneratedGame(kernel);

            SetContentView(g.AndroidGameView);
            g.Run();
        }