Ajouté la musique + corrigé le bug d'arrayOut of Bounds
This commit is contained in:
parent
18019ae113
commit
bf4ddbd5e8
|
|
@ -31,7 +31,7 @@ public class ControleurJeu extends Thread {
|
|||
private int nbZombiesPlateau;
|
||||
private int nbZombiesCrees;
|
||||
|
||||
private ControleurSon controleurSon;
|
||||
private final ControleurSon controleurSon;
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ public class ControleurSon {
|
|||
|
||||
// Un champ privé pour stocker l'instance unique du SoundManager
|
||||
private static ControleurSon instance;
|
||||
private SoundPlayer musiqueFond;
|
||||
private SoundPlayer bipAttaque;
|
||||
private SoundPlayer bipBonus;
|
||||
private final SoundPlayer musiqueFond;
|
||||
private final SoundPlayer bipAttaque;
|
||||
private final SoundPlayer bipBonus;
|
||||
|
||||
// Un constructeur privé pour empêcher la création d'autres instances
|
||||
private ControleurSon() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue