static void Main(string[] args) { // STBMipGenerator.InstallGlobally(); using (DemoGame game = new DemoGame()) game.Run(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (DemoGame game = new DemoGame()) { game.Run(); } }
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(); }
private static void Main() { var urhoOptions = new ApplicationOptions("Data"); var _app = new DemoGame(urhoOptions); _app.Run(); }
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(); }
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(); }
public override void DidFinishLaunching(NSNotification notification) { game = new DemoGame(); game.Run(); }
static void Main() { using (var game = new DemoGame()) game.Run(); }