/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public AudioManager(Game1 currentGame) { game = currentGame; engine = new AudioEngine("Content\\SFX\\SFX.xgs"); soundBank = new SoundBank(engine, "Content\\SFX\\Sound Bank.xsb"); waveBank = new WaveBank(engine, "Content\\SFX\\Wave Bank.xwb"); fxCat = engine.GetCategory("SFX"); fxCat.SetVolume(10f); }
public ContentLoader(Game1 currentGame) { game = currentGame; game.sfx = new AudioManager(game); }
public Draw(Game1 currentGame) { game = currentGame; }