Solution for Nr. 10, added 'BackgroundSound.java' and edited 'battleshipApp' and 'Menu'

the 'BackgroundMusic' class defines the background music and the function used to control it, in the 'BattleshipApp' is an attribute of BackgrounMusic and a return function and in the Menu the Checkbox and the slider for the backgroundMusic and the update function were implemented
This commit is contained in:
Benjamin Feyer
2024-10-03 23:34:15 +02:00
parent 6355b98441
commit 34a0fa2304
6 changed files with 141 additions and 10 deletions

View File

@@ -22,10 +22,5 @@ public enum Sound {
/**
* Sound of a ship being destroyed.
*/
DESTROYED_SHIP,
/**
*
*/
BACKGROUND_MUSIC //TODO
DESTROYED_SHIP
}