Make a screen when the player finish the level (#64)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Make a screen when the level is finish and also change the button play for select a difficulty Co-authored-by: Mat <diletomatteo@gmail.com> Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com> Reviewed-on: #64 Reviewed-by: Debucquoy Anthony <d.tonitch@gmail.com>
This commit is contained in:
@ -2,7 +2,8 @@ package school_project;
|
||||
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.input.MouseButton;
|
||||
import school_project.Menu.MenuAccueil;
|
||||
|
||||
import school_project.Menu.ScreenLevelFinish;
|
||||
import school_project.Utils.MatrixShape;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
@ -76,7 +77,7 @@ public class GameUI extends Group{
|
||||
_piece.setLayoutY(grid.getLayoutY() + p.getPosition().x * (SEGMENT_SIZE+SPACE_SIZE));
|
||||
}
|
||||
if(level.gameDone()){
|
||||
Controller.switchRoot(new MenuAccueil());
|
||||
Controller.switchRoot(new ScreenLevelFinish());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user