Exemple #1
0
        private void LoadGame(TextAdventureGame game, Engine.Objects.World world)
        {
            CloseGame();

            Text = world.Title + " - Text Adventure";
            _game = game;
            _game.Run();
            xnaControl.DrawBackground = false;
        }
Exemple #2
0
        private void CloseGame()
        {
            if (!GameRunning)
            {
                return;
            }

            _game.Dispose();
            _game = null;
            _multimediaPlayer.Reset();
            xnaControl.DrawBackground = true;
            xnaControl.Refresh();
        }