Amélioration

This commit is contained in:
2024-11-16 00:42:03 +01:00
parent 5950dc724a
commit 848c446ee5
2 changed files with 23 additions and 23 deletions

View File

@@ -8,6 +8,8 @@ import fr.monkhanny.dorfromantik.enums.Musics;
import fr.monkhanny.dorfromantik.listeners.CloseWindowListener;
import fr.monkhanny.dorfromantik.gui.SettingsPanel;
import fr.monkhanny.dorfromantik.controller.TutorialController;
import fr.monkhanny.dorfromantik.controller.GameModeController;
import fr.monkhanny.dorfromantik.gui.GameModeSelectionPanel;
import javax.swing.JFrame;
@@ -54,8 +56,10 @@ public class Main {
howToPlayFrame.addWindowListener(howToPlayWindowListener);
howToPlayFrame.add(tutorialController.getTutorialPanel());
// Fenêtre du jeu
gameFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
// Fenêtre du choix des modes de jeu
GameModeController gameModeController = new GameModeController();
GameModeSelectionPanel gameModeSelectionPanel = new GameModeSelectionPanel(gameModeController);
gameModeController.setGameModeSelectionPanel(gameModeSelectionPanel);
gameFrame.add(gameModeSelectionPanel);
}
}