Exemple #1
0
        static void Main(string[] args)
        {
            // STBMipGenerator.InstallGlobally();

            using (DemoGame game = new DemoGame())
                game.Run();
        }
Exemple #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DemoGame game = new DemoGame())
     {
         game.Run();
     }
 }
Exemple #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();
 }
Exemple #4
0
        private static void Main()
        {
            var urhoOptions = new ApplicationOptions("Data");

            var _app = new DemoGame(urhoOptions);

            _app.Run();
        }
Exemple #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();
 }
Exemple #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();
        }
Exemple #7
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     game = new DemoGame();
     game.Run();
 }
Exemple #8
0
 static void Main()
 {
     using (var game = new DemoGame())
         game.Run();
 }