Sokoban game clone made in JavaFX
Make sure you have installed these:
- Java 8 - is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. You should install both JDK and JRE.
- JavaFX - OpenJFX is an open source, next generation client application platform for desktop, mobile and embedded systems built on Java.
- W, A, S, D - movement
- Escape - go back to Main Menu
- R - restart
Following instruction only works for IntelliJ IDEA
-
Add JavaFX library by the instruction here https://www.jetbrains.com/help/idea/javafx.html#add-javafx-lib
-
Navigate to
src/res/windows
-
Run
MainMenu.java
. Don't worry if it throws, we used this part to create configuration. -
Go to
Run -> Edit Configurations
-
Open configuration we just created.
-
In the VM options field, specify:
--module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml
Instead of %PATH_TO_FX%, specify the path to the JavaFX SDK lib directory
-
Apply configuration
-
Run