So there is a lot of lack of FX2.0 tutorials or reference files, I decided to port the kevglass’s classic spave invaders tutorial/sample code over to javaFX.
I can’t promise the “best practices” programming, because honestly, I just started using FX for the first time, never used fxscript. I can find no more bugs, but I know of at least 1 potential problem.
applet version (FX2.0 runtime required)
http://www.newrog.com/java/asteroidfx/spaceinvadersfx.html
Note* Do not use this as a judgment for javaFX 2.0 performance, because there are at least 1-2 things I personally know of that make it a little less than “ideal”
source
http://www.newrog.com/java/asteroidfx/space_fx_namrog.zip
original tutorial/code from kevglass:
http://www.cokeandcode.com/info/tut2d.html
javaFX 2.0 beta run times(requires free oracle account right now)
http://www.oracle.com/technetwork/java/javafx/downloads/index.html
1 added feature to show 1 FX built in feature.
at the press any key screen at lunch, press A or S for large or small scale, if you press it ingame, it only changes the bullet size. I know other engines have scaling as features, but java I dont think ever had that great of built in scaling, and now its a simple .scaleX(value);
I hope and plan to continue to add/improve this to show more javaFX specific built in functions, I will also throw up a tutorial page later on with those features explained in more detail. I figured since there is a LWJGL port, why not a javaFX2.0 port