Exemple #1
0
 public cAudio()
 {
     _instance = this;
     _engine = new AudioEngine("Resources/Audio/Portal2DSounds.xgs");
     _waveBank = new WaveBank(_engine, "Resources/Audio/Wave Bank.xwb");
     _soundBank = new SoundBank(_engine, "Resources/Audio/Sound Bank.xsb");
 }
Exemple #2
0
        public Portal2D()
        {
            _instance = this;
            _spriteManager = new cSpriteManager();
            _graphics = new GraphicsDeviceManager(this);
            _contentManager = new ContentManager(Services);
            _input = new cInput();
            _audio = new cAudio();
            _fontManager = new cFontManager();
            _fontManager.addFont(@"Resources/Fonts/Treb11.xml", "Treb11");
            _fontManager.addFont(@"Resources/Fonts/Treb8.xml", "Treb8");

            _gameRunning = false;
            _videoRunning = false;

            // Allow resizing - SET TO FLASE FOR NOW
            Window.AllowUserResizing = false;
            Window.ClientSizeChanged += new System.EventHandler(Window_ClientSizeChanged);
        }