Make the interface for the game :
The MenuAcceuil is the fisrt page that the user will see
and The MenuLevel generate the Interface to show all the button to access to all level
TODO : Make levels and link them to buttons
Make the interface for the game :
The MenuAcceuil is the fisrt page that the user will see
and The MenuLevel generate the Interface to show all the button to access to all level
TODO : Make levels and link them to buttons
tu pourrais faire un appel à #L33 (switchRoot) dans un premier temps ca ne changer rien mais si on change la façon de changer de scene un moment ca sera alors plus cohérent!
tu pourrais faire un appel à #L33 (switchRoot) dans un premier temps ca ne changer rien mais si on change la façon de changer de scene un moment ca sera alors plus cohérent!
Ca ne changerait pas grand chose pour l'instant mais si plus tard dans le code on a besoin de changer le fonctionnement de Scene par expemple, alors ca serait plus simple à changer.
en gros au lieu de faire
```java
stage.setScene(new Scene(root));
```
Tu pourrais faire
```java
switchRoot(root);
```
Ca ne changerait pas grand chose pour l'instant mais si plus tard dans le code on a besoin de changer le fonctionnement de Scene par expemple, alors ca serait plus simple à changer.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Make the interface for the game :
The MenuAcceuil is the fisrt page that the user will see
and The MenuLevel generate the Interface to show all the button to access to all level
TODO : Make levels and link them to buttons
super work, just some comments
@@ -25,0 +24,4 @@root = new MenuAcceuil();stage = primaryStage;stage.setTitle("ROAD TO MASTER");stage.setScene(new Scene(root));tu pourrais faire un appel à #L33 (switchRoot) dans un premier temps ca ne changer rien mais si on change la façon de changer de scene un moment ca sera alors plus cohérent!
en gros au lieu de faire
Tu pourrais faire
Ca ne changerait pas grand chose pour l'instant mais si plus tard dans le code on a besoin de changer le fonctionnement de Scene par expemple, alors ca serait plus simple à changer.
@@ -29,2 +35,3 @@}public static void main(String[] args) {launch();launch(args);pourquoi ?
@@ -0,0 +11,4 @@private Button Play;public static Button SelectLevel;private Button Trophy;private Label Title;Ces Variable (sauf
selectlevel) peuvent@@ -0,0 +30,4 @@setAlignment(Play,Pos.CENTER);setAlignment(SelectLevel,Pos.CENTER);setAlignment(Trophy,Pos.CENTER);//Menu.getStylesheets().add("style.css"); todo creat a file cssa enlever
@@ -0,0 +34,4 @@setPadding(new Insets(20,60,20,60));SelectLevel.setOnAction(event -> Controller.switchRoot(new MenuLevel(1)));getStyleClass().add("BorderPane");getStylesheets().add(String.valueOf(getClass().getResource("StyleMenuAcceuil.css")));pour plus de lisibilitée quelques espaces seraient cool
@@ -0,0 +13,4 @@public Button[] Days = new Button[3];public int StartLevel;public ColumnConstraints[] Columns = new ColumnConstraints[3];public RowConstraints[] Rows = new RowConstraints[5];Peuvent être locales
@@ -0,0 +98,4 @@pourquoi y'a plein d'espaces
juste le switchroot à voir si tu est d'accord ?