|
|
|
@ -70,7 +70,13 @@ public class GameConfigMenuController implements Initializable {
|
|
|
|
|
FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/viewGame2.fxml"));
|
|
|
|
|
Parent pane = loader.load();
|
|
|
|
|
GamePlayController gp = loader.getController();
|
|
|
|
|
if(this.difficulty == 0){
|
|
|
|
|
this.difficulty = 1;
|
|
|
|
|
}
|
|
|
|
|
gp.difficulty = this.difficulty;
|
|
|
|
|
if(this.personnage == 0){
|
|
|
|
|
this.personnage = 1;
|
|
|
|
|
}
|
|
|
|
|
gp.perso = this.personnage;
|
|
|
|
|
gp.gameLauncher();
|
|
|
|
|
|
|
|
|
|