Exemple #1
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            entities.LoadContent();
            level.LoadContent();
            game.LoadContent();

            camera = new Camera();

            player = entities.GetPlayer();

            worldView = new GuiWorld(entities, level, game);
            worldView.AssociateCamera(camera);

            Minimap = new GuiMinimap(entities, level, game)
            {
                Size = new Size2D(224, 176)
            };

            GuiManager.Instance.GuiElements.Add(worldView);
            GuiManager.Instance.GuiElements.Add(Minimap);

            base.LoadContent();
        }