Ajouts de music de fond + modification des boutons (quand on survole le bouton, sa taille grandis progressivement et la couleur change
This commit is contained in:
14
TestV2/src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
14
TestV2/src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
public enum Musics {
|
||||
MAIN_MENU_MUSIC;
|
||||
|
||||
public String getSoundsPath() {
|
||||
switch (this) {
|
||||
case MAIN_MENU_MUSIC:
|
||||
return "./ressources/sounds/Music/mainMenuMusic.wav";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user