Make a Button to load the previous game done by the player in case if he want to do it one more time(#73)
All checks were successful
continuous-integration/drone/push Build is passing

Make a Button to load the previous game done by the player in case if he want to do it one more time

Co-authored-by: Mat <diletomatteo@gmail.com>
Reviewed-on: #73
Reviewed-by: Debucquoy Anthony <d.tonitch@gmail.com>
This commit is contained in:
2023-05-18 19:31:47 +02:00
parent 8c8dacadd0
commit fed275ba09
2 changed files with 16 additions and 3 deletions

View File

@ -77,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 ScreenLevelFinish());
Controller.switchRoot(new ScreenLevelFinish(level));
}
}
});