Esempio n. 1
0
 public static FeatureLoader GetInstance()
 {
     if (_instance == null)
     {
         _instance = new FeatureLoader();
     }
     return _instance;
 }
Esempio n. 2
0
        public void Initialize()
        {
            SetHp(1000);
            _featureLoader = FeatureLoader.GetInstance();
            _attackTimer.Elapsed += new ElapsedEventHandler(UseAttack);
            _attackTimer.Interval = 2000;
            _attackTimer.Enabled = true;

            _attackCoolDownTimer.Elapsed += new ElapsedEventHandler(ResetCoolDown);
            _attackCoolDownTimer.Interval = 5000;
            _attackCoolDownTimer.Enabled = true;
            base.Initialize(true);
            _attackTimer.Start();
        }
Esempio n. 3
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();
        }