private void LoadGame(TextAdventureGame game, Engine.Objects.World world) { CloseGame(); Text = world.Title + " - Text Adventure"; _game = game; _game.Run(); xnaControl.DrawBackground = false; }
private void CloseGame() { if (!GameRunning) { return; } _game.Dispose(); _game = null; _multimediaPlayer.Reset(); xnaControl.DrawBackground = true; xnaControl.Refresh(); }