Chapter 10. Clever graphics and smart phones

 

The chapter covers

  • Constructing complex scene graphs
  • Handling device-agnostic key input
  • Going mobile, with the phone emulator
  • Tuning apps, for better performance

Previous projects in this book have introduced a lot of fresh material and concepts, covering the core of the JavaFX Script language and its associated JavaFX APIs. Although we haven’t explored every nook and cranny of JavaFX, by now you should have experienced a representative enough sample to navigate the remainder of the API without getting lost or confused. So this chapter is a deliberate shift down a gear or two.

Over the coming pages we won’t be discovering any new libraries, classes, or techniques. Instead, this chapter’s project will focus on a couple of goals. We’ll start by reinforcing the skills you’ve acquired thus far, pushing the scene graph in directions you’ve previously not seen, and then end by moving our finished project onto the JavaFX Mobile platform.

10.1. Amazing games: a retro 3D puzzle

10.2. The maze game

10.3. On the move: desktop to mobile in a single bound

10.4. Performance tips

10.5. Summary