public SplashScreenState(StateSystem system, TextureManager textureManager, Engine.Font titleFont, SoundManager soundManager)
        {
            _system = system;

            //sound
            _soundManager = soundManager;
            _soundManager.MasterVolume(0.01f);

            //title font
            _title = new Text("Immune Cells vs. Invaders", titleFont);
            _title.SetColor(new Color(0, 0, 0, 1));
            _title.SetPosition(-_title.Width / 2, 300);

            // good guys
            _character1.Texture = textureManager.Get("phagocyte");
            _character1.SetScale(2, 2);
            _character1.SetPosition(-150, 100);

            //bad guys
            _invader1.Texture = textureManager.Get("tatoo_dye");
            _invader1.SetScale(2, 2);
            _invader1.SetPosition(200, 100);

            _invader2.Texture = textureManager.Get("parasite");
            _invader2.SetScale(2, 2);
            _invader2.SetPosition(200, 0);

               // _soundManager.PlaySound("intro_music");
        }
Пример #2
0
        public SoundTestState(SoundManager soundManager)
        {
            _soundManager = soundManager;

            //_soundManager.MasterVolume(1.0f);
        }
Пример #3
0
        public SoundTestState(SoundManager soundManager)
        {
            _soundManager = soundManager;

            _soundManager.MasterVolume(0.1f);
        }
Пример #4
0
 protected override void PlaySoundEffect(SoundEffect soundEffect)
 {
     SoundManager.Play3DSoundOnece(soundEffect,
                                   PositionInWorld - Globals.ListenerPosition);
 }