Game Development Reference
In-Depth Information
and
double
and then explored the Java operators that are used to process, or bridge,
these data types over to your programming logic. You studied
arithmetic
operators, for
use with numeric values;
logical
operators, for use with boolean values;
relational
op-
erators, to consider relationships between data values;
conditional
operators, which al-
low you to establish any conditional variable assignments; and
assignment
operators,
which let you assign values to (or between) variables.
Then, you looked at Java
logic control
structures, including decision-making con-
trol structures (I like to call them decision trees) and looping, or
iterative
, logic control
structures. You learned about the Java
switch-case
structure, the
if-else
structure, the
for
loop structure, and the
do-while
loop structures. Finally, you examined Java objects
and discovered how to define object attributes, states, and behaviors, using a Java class,
methods, and constructor methods.
In the next chapter, I will give you an overview of the
JavaFX
multimedia engine,
and its classes and capabilities, as you will be leveraging JavaFX to add media ele-
ments to your games, such as images, video, and audio, and to control your games, us-
ing JavaFX object constructs (classes), such as the
Stage
,
Scene
, and
StackPane.