Hi, dropping by to say that I did manage to make it run on macOS M1.
There are two main issues most people have:
1. The JAR does not open when clicked.
When you open it from the terminal using the java -jar pf.jar you will find out that there's an error which states that the code was compiled with a newer version than what you have. This probably means that you're using Java 8. You can check your version by typing java -version in the Terminal.
2. Error when playing media.
This is caused by the fact that by default Java does not come with a built-in JavaFX package, which is responsible for handling media.
Solution:
As mentioned in the first post, you need to download Liberica JDK and JRE. This package comes built-in with JavaFX.
Make sure to pick the latest version (JDK/JRE 18) to fix the first problem. When selecting for an option, pick Full JRE/JDK.
Type java -version in the Terminal and check if the correct version is installed. After that, run the game via java -jar pf.jar