removing smap from the console
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d52d1cab77
commit
621be3af64
@ -30,7 +30,6 @@ public class MenuAccueil extends StackPane {
|
|||||||
Label Title = new Label("Welcome to Road to Master");
|
Label Title = new Label("Welcome to Road to Master");
|
||||||
SlctDifficulty.setOnAction(event -> {
|
SlctDifficulty.setOnAction(event -> {
|
||||||
String choosediff = SlctDifficulty.getSelectionModel().getSelectedItem();
|
String choosediff = SlctDifficulty.getSelectionModel().getSelectedItem();
|
||||||
System.out.println(choosediff);
|
|
||||||
switch (choosediff) {
|
switch (choosediff) {
|
||||||
case "Easy":
|
case "Easy":
|
||||||
try {
|
try {
|
||||||
|
@ -69,7 +69,6 @@ public class MenuLevel extends GridPane {
|
|||||||
levelButton.setOnAction(event -> {
|
levelButton.setOnAction(event -> {
|
||||||
try {
|
try {
|
||||||
String levelName = ((Button)event.getSource()).getText().replace(" ", "") + ".level";
|
String levelName = ((Button)event.getSource()).getText().replace(" ", "") + ".level";
|
||||||
System.out.println(levelName);
|
|
||||||
GameUI level = new GameUI(FileParserFactory.loadMapFromFile(new File(Controller.class.getResource("levels/" + levelName).getFile())));
|
GameUI level = new GameUI(FileParserFactory.loadMapFromFile(new File(Controller.class.getResource("levels/" + levelName).getFile())));
|
||||||
Controller.switchRoot(level);
|
Controller.switchRoot(level);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user