Ejemplo n.º 1
0
 public static TextureLoader GetInstance()
 {
     if (_instance == null)
     {
         _instance = new TextureLoader();
     }
     return _instance;
 }
Ejemplo n.º 2
0
        protected override void Initialize()
        {
            _featureLoader = FeatureLoader.GetInstance();
            _textureLoader = TextureLoader.GetInstance();
            _startMenu = new StartMenu();
            _textFont = Content.Load<SpriteFont>("Fonts/Font");
            _deadFont = Content.Load<SpriteFont>("Fonts/DeadFont");

            SpriteFont levelsFont = Content.Load<SpriteFont>("Fonts/levelsFont");
            SpriteFont gameOverFont = Content.Load<SpriteFont>("Fonts/gameOverFont");
            _startMenu.SetFonts(levelsFont, gameOverFont: gameOverFont);

            LoadListContent("Starbucksalandorium");
            LoadListContent("Kloonwereld");
            LoadListContent("Crackenarium");
            LoadListContent("Gideon");
            LoadListContent("Startmenu");

            _startMenu.Initialize();

            base.Initialize();
        }