File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/main/java/com/escapegame Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1010
1111/**
1212 * Opened1 screen controller — wired to startgame.fxml
13+ * Handles basic navigation from the "opened1" / startgame screen:
14+ * quitting back to the main menu and moving to the matching screen.
1315 */
1416public class Opened1Controller implements Initializable {
1517
1618 @ FXML private Button quitButton ;
17-
19+ /**
20+ * Called by the FXMLLoader to initialize the controller.
21+ * @param location location used to resolve relative paths for the root object, or {@code null}
22+ * @param resources resources used to localize the root object, or {@code null}
23+ */
1824 @ FXML
1925 public void initialize (URL location , ResourceBundle resources ) {
2026 System .out .println ("Opened1Controller initialized" );
2127 }
22-
28+ /**
29+ * Handler for the Quit button. Navigates to the main menu.
30+ */
2331 @ FXML
2432 private void onQuit () {
2533 System .out .println ("Quit button clicked" );
@@ -29,7 +37,9 @@ private void onQuit() {
2937 e .printStackTrace ();
3038 }
3139 }
32-
40+ /**
41+ * Handler for the Door button. Navigates to the matching screen.
42+ */
3343 @ FXML
3444 private void onDoor () {
3545 System .out .println ("Door button clicked" );
You can’t perform that action at this time.
0 commit comments