Example #1
0
        private void LoadLevel(LevelBackground background)
        {
            game.ClearContent();
            game.ViewportManager.Clear();

            game.AddAndTrack(background);

            InitializeMarian();
            InitializeEffects();

            AddAndTrackNpcs();
            AddAndTrackItems();

            game.AddAndTrack(marian);
            game.InitializeBase();

            LifeManager.Instance.Initialize();

            game.AddPersistantContent();
        }
Example #2
0
        private void InitializeMap()
        {
            if (levels.Count > 0) // sanity.
            {
                return;
            }

            for (int i = 1; i <= Count; i++)
            {
                LevelBackground level = new LevelBackground(i);
                levels.Add(level);
            }
        }