Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
■ INDEX

code editing and language, 140
Code Navigator Pane, 137
code refactoring, 139
IDE, 138–139
Java Code Profiling Suite, 137–138
JavaFXGame (see JavaFXGame class)
Java SE Edition, 136
profiler, 142
project management tools, 140
UI design, 141
NetBeans 9 IDE, 1
downloading, 8
installation, 12–17
NetBeans 9 profiling
garbage collection, 617–618
JavaFXGame, 612
memory used summary, 619
system memory and CPU cycles, 613
telemetry profiling session, 613, 615–616
Nonlinear animation, 66–67
Normal Floyd-Steinberg color dithering
algorithm, 605–606


„„„„„„„„„O


Objects
car data, 121–124
hierarchy, 120
inheritance, 125–126
syntax, 124
OnFinished() event handling
angle offsets, 471, 475
conditional if(), 474
createAnimationAssets(), 470, 471
game board spin, 478–479
image load and texture map, 473
populateQuadrant(), 471
populateQuadrantFour(), 481
populateQuadrantOne(), 472
populateQuadrantThree(), 478, 480–481
populateQuadrantTwo(), 475–477, 480–481
quadrantLanding, 472
quadrant landing position, 480
OnMouseClick() event handling
createSceneProcessing(), 494
game image viewing, 507
if(), 489
populateQuadrantFour(), 505
populateQuadrantOne(), 489, 491
populateQuadrantThree(), 500–502
populateQuadrantTwo(), 496, 499
Q1S1 texture, 493
setupQSgameplay(), 503, 506
setupQ1S1gameplay(), 491–492
setupQ1S5gameplay(), 496–498


setupQ2S5gameplay(), 496–498
setupQ4S5gameplay(), 504
testing, 500
Open GL Shader Language (GLSL), 64
Open source software packages, 25–28
Operators
arithmetic, 110–111
assignment, 113
conditional, 114
logical, 112–113
relational, 111–112

„„„„„„„„„P
Packages, 91–92
ParallelCamera class, 365–368
ParallelTransition class, 593–595
Pencil 2.0.6, 25
PhongMaterial class
color and power values, 319–322
Phong shading, 316–319
protected, 316
setMaterial (), 321
setSpecularColor(), 322–323
specularPower property, 323–325
Phong shading algorithm, 316–319
Physics simulation, 79
PickResult class
constructors, 410
event-handling, 409
MouseEvent, trapping, 411–413
Random
ActionEvent, 425
createAnimationAssets(), 427–430
createSceneProcessing(), 431–433
java.util, 423–424
.nextInt(int bound) (int), 426–427
spinner UI element
createAnimationAssets(), 418–419
createSceneProcessing(), 413–414
play(), 416, 418
rotSpinner construct, 420–422
.setOnMouseClicked(), 415
spinnerAnim.play(), 419–420
Pivot point, 54
Planar projection, 64
Player-proofing code, 583–584, 586–588
PointLight objects, 286–290
populateQuadrant(), 623–624
Pos class, 189–190
POVRay, 27
Primitives, 315
Procedural animation, 68
Pro Java 8 Games Development, 2
Puzzle games, 83
Free download pdf