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:
2024-11-06 18:05:01 +01:00
parent d0c67d5298
commit 2c84169d7f
15 changed files with 407 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
package fr.monkhanny.dorfromantik.enums;
public enum Images {
SETTINGS_ICON, EXIT_ICON;
public String getImagePath() {
switch (this) {
case SETTINGS_ICON:
return "./ressources/images/Icone/SettingsIcon.png";
case EXIT_ICON:
return "./ressources/images/Icone/ExitIcon.png";
default:
throw new IllegalArgumentException("Unexpected value: " + this);
}
}
}

View 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);
}
}
}

View File

@@ -0,0 +1,16 @@
package fr.monkhanny.dorfromantik.enums;
public enum Sounds {
SOUNDS1, SOUNDS2;
public String getSoundsPath() {
switch (this) {
case SOUNDS1:
return "./ressources/sounds/SFX/1.mp3";
case SOUNDS2:
return "./ressources/sounds/SFX/2.mp3";
default:
throw new IllegalArgumentException("Unexpected value: " + this);
}
}
}