Main.java
contains an implementation of Asteroids, as walked through here: https://youtu.be/ceMz7JMkKuw. If you create a JavaFX project and replace the default Main.java
file with this one, you'll be good to go.
Framework.java
contains boilerplate code for a 2D real-time game in JavaFX.