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

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

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