src/gameplayer/controller/Controller.java
public void changeGameLevel(int level) {
        gameRoot = gameLevelDisplays.get(level);
        myPane.setCenter(gameRoot);

        GameManager.setActiveLevel(level);
        initializeGameView.accept(null);
        sampleBar.setActiveLevel(level);

        Scene gameScene = new Scene(myPane, WIDTH_SIZE, HEIGHT_SIZE);

        initializeGameAnimation();
        assignKeyInputs(gameScene);
        myStage.setScene(gameScene);
    }
/**
     * Changes the display of the gave.
     *
     * @param level to be loaded
     */
Changes the display of the gave.
@param level to be loaded
Changes the display of the gave . @param level to be loaded
public void changeGameLevel(int level) {
        gameRoot = gameLevelDisplays.get(level);
        myPane.setCenter(gameRoot);
        GameManager.setActiveLevel(level);
        initializeGameView.accept(null);
        sampleBar.setActiveLevel(level);
        Scene gameScene = new Scene(myPane, WIDTH_SIZE, HEIGHT_SIZE);
        initializeGameAnimation();
        assignKeyInputs(gameScene);
        myStage.setScene(gameScene);
    }
public void changeGameLevel ( int level ) { gameRoot = gameLevelDisplays . get ( level ) ; myPane . setCenter ( gameRoot ) ; GameManager . setActiveLevel ( level ) ; initializeGameView . accept ( null ) ; sampleBar . setActiveLevel ( level ) ; Scene gameScene = new Scene ( myPane , WIDTH_SIZE , HEIGHT_SIZE ) ; initializeGameAnimation ( ) ; assignKeyInputs ( gameScene ) ; myStage . setScene ( gameScene ) ; }
Changes the display of the gave.
Changes the display of the gave .