Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // STBMipGenerator.InstallGlobally();

            using (DemoGame game = new DemoGame())
                game.Run();
        }
Exemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DemoGame game = new DemoGame())
     {
         game.Run();
     }
 }
Exemplo n.º 3
0
 static void Main()
 {
     StaticServiceLocator.AddService <ISaveAndLoad>(new SaveAndLoad());
     StaticServiceLocator.AddService <IControllerSettings>(new ControllerSettings());
     StaticServiceLocator.AddService <IPossibleMovements>(new FourWayPossibleMovement());
     using (var game = new DemoGame())
         game.Run();
 }
Exemplo n.º 4
0
        private static void Main()
        {
            var urhoOptions = new ApplicationOptions("Data");

            var _app = new DemoGame(urhoOptions);

            _app.Run();
        }
Exemplo n.º 5
0
 internal static void RunGame()
 {
     StaticServiceLocator.AddService <ISaveAndLoad>(new SaveAndLoad());
     StaticServiceLocator.AddService <IControllerSettings>(new ControllerSettings());
     StaticServiceLocator.AddService <IPossibleMovements>(new EightWayPossibleMovement(new CrowDistance()));
     game = new DemoGame();
     game.Run();
 }
Exemplo n.º 6
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            StaticServiceLocator.AddService <ISaveAndLoad>(new SaveAndLoad(Assets));
            StaticServiceLocator.AddService <IControllerSettings>(new ControllerSettings());
            StaticServiceLocator.AddService <ITextToSpeech>(new TextToSpeechImplementation());
            StaticServiceLocator.AddService(new List <StoryInterceptor> {
                new TextToSpeechStoryInterceptor()
            });
            StaticServiceLocator.AddService <IPossibleMovements>(new EightWayPossibleMovement(new CrowDistance()));
            var g = new DemoGame();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Exemplo n.º 7
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     game = new DemoGame();
     game.Run();
 }
Exemplo n.º 8
0
 static void Main()
 {
     using (var game = new DemoGame())
         game.Run();
 }