protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); BoardScreenClassic.RetrieveStream = (string path) => { return(this.Assets.Open(path)); }; var g = new GameMG(); RogueWordsGame game = new RogueWordsGame(g, true); g.HandleBackButton = () => { if (game.activeScreen == game.menuScreen) { MoveTaskToBack(true); } else if (game.activeScreen == game.menuScreen.board) { game.activeScreen = game.menuScreen.board.parentScreen; } }; g.Components.Add(game); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
static void Main() { using (var game = new GameMG()) { game.Components.Add(new RogueWordsGame(game, false)); game.Run(); } }
static void Main() { using (var game = new GameMG()) { game.Components.Add(new SmallFPS(game)); //game.Components.Add(new MknGames.NonGames.CapsuleCollisionRoom(game)); game.Run(); } }