I have transferred to GWT(google web toolkit) because Java Applet will be abolished. I created the programs with Javafx. Some programs are also used for GWT.
I drew the gamegraphic with canvas of Javafx. We can use it by the similar way to that of GWT. How to write programs is different with GWT in the following itmes.
- How to indicate a file to operate
- How to draw a circle or arc
- How to indicate color to draw a string or shapes
- How to get the width of text when it is drawn
- We can draw the rectangle with round corners
- How to draw image file
- How to repeat game process infinitely
- How to get Key event
However, I copied almost all GWT programs to transfer to Javafx because we could use it by the similar way to that of GWT. Therefore we will be able to transfer from Javafx to GWT easily.
(2019/02/24 Appended)
Oracle java is changing very much. Javafx disappeared from Oracle java. It became open-source as OpenJFX. Javafx may live for a long time because it isn't influenced by Oracle.
You can play this roguelikegame "The adventure of a man with six powers" at this page for free without any registration and installation.