public MainMenu(NeonArkanoidGame game) { _game = game; SetBackground(); SetHeader(); _buttons = new[] { new Button(UtilStrings.SpritesMenu + "Start.png", 2, 1500, 207, "Level1"), new Button(UtilStrings.SpritesMenu + "credits.png", 2, 1498, 370, "Credits"), new Button(UtilStrings.SpritesMenu + "quit.png", 2, 1502, 537, "Exit") }; foreach (var button in _buttons) { AddChild(button); } _buttons[0].Selected(); _selectedSound = new Sound(UtilStrings.SoundsMenu + "sound_selected.wav"); var music = new Sound(UtilStrings.SoundsMenu + "Menu.ogg", true, true); _musicChannel = music.Play(); }
private void SetSounds() { _hitPoly = new Sound(UtilStrings.SoundsLevel + "1_tile hit.wav"); _hitPaddle = new Sound(UtilStrings.SoundsLevel + "1_pedal hit.wav"); _music = new Sound(UtilStrings.SoundsLevel + "8.wav", true, true); _musicChannel = _music.Play(); }