Game Development Reference
In-Depth Information
directly to Android 5.0, using IntelliJ , or to Chrome OS, using NetBeans 8.0. You
should eventually be able to “code once, run everywhere” with this Java 8 and JavaFX
8.0 dynamic duo! Oracle recently released Java 8 SE Embedded, Java 8 ME and Java 8
ME Embedded versions, all of which support JavaFX.
Note The JetBrains IntelliJ IDEA is now the official IDE used for creating 64-bit
Android 5.0 applications. This IDE is examined in my Android Apps for Absolute Be-
ginners, 3rd Edition (Apress, 2014), which covers developing 32-bit Android 4.0 ap-
plications, using an Eclipse IDE and Java 6, and 64-bit Android 5.0 applications, using
an IntelliJ IDEA and Java 7.
Let's start at the top of the diagram, and take a look at the JavaFX Scene Graph and
the javafx.scene package, which implements Scene Graph in the JavaFX API (you will
look at Scene Builder in the next chapter).
JavaFX Scene Package: 16 Core Java 8
Classes
The first thing I want to do after our high-level overview is present one of the most im-
portant JavaFX packages, the javafx.scene package. In Chapters 2 and 3 , you dis-
covered that there is more than one JavaFX package. As you saw in Chapter 3 (see Fig-
ure 3-1 ) , the InvinciBagel game application uses four different JavaFX packages. The
javafx.scene package contains 16 powerful Java 8 classes (remember, JavaFX was re-
coded in Java 8), including the Camera , ParallelCamera and PerspectiveCamera ,
Cursor and ImageCursor , LightBase , PointLight , and AmbientLight classes; the
Scene Graph classes ( Node , Parent , Group , and SubScene ); and some utility classes
(see Figure 4-2 ).
 
Search WWH ::




Custom Search