This post is written as 23rd in irof Advent Calendar and JavaFX Advent Calendar.

Regardless of the Mayan calendar, I'm glad you are safe.
We are not interested in it, however, irof-san saved the Earth.

unzip and double click irof.jar



irof_screen_shot


When hold down the left mouse button, the balloon(?) is fired towards the mouse cursor, using the balloon to destroy the meteor.
Boss will appear over time, shoot and destroy it. Done right, you can save the Earth.
Meter at the bottom will be green to destroy the meteor, be red meteor reaches the Earth. If the meter is red all, game is over.

This is a sample that making a game with ScalaFX is easy.

Incidentally, game screen is using Canvas, and start button, text and meter are using Label and Rectangle in BorderPane.