ScreenLevelFinish #64
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ScreenLevelFinish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make a screen when the level is finish and also change the button play for select a difficulty
L'écran de fin donne super bien bon boulot !
@ -32,0 +31,4 @@
SlctDifficulty.setOnAction(event1 -> MapGenerator.generate(MapGenerator.Difficulty.Medium));
break;
case "Difficult":
SlctDifficulty.setOnAction(event1 -> MapGenerator.generate(MapGenerator.Difficulty.Difficult));
Le
MapGenerator.generate()
retourne uneMap
Cette Map doit ensuite être chargée par
GameUI(Map)
Il faudrait du coup
@ -0,0 +12,4 @@
public class ScreenLevelFinish extends StackPane {
public ScreenLevelFinish(){
Peut être que tu peux ajouter le numéro du niveau dans le constructeur pour l'afficher et demander soit si ils veulent le retenter, soit jouer au suivant.
Remarque, pour les niveaux généré aléatoirement à la place du niveau il faudrait avoir l'objet Map du niveau passé dans le constructeur pour rédémarer le niveau ^
bien ouéj