Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 21 ■ Questions and answers: Finishing the setup Methods and digital audio

Next, create a loadAudioAssets() method call, right under the loadImageAssets() method call, and
again use the Alt+Enter keystroke, shown in Figure 21-23, to have NetBeans create the empty bootstrap
method body for you.


Figure 21-22. Declare spinnerAudio and cameraAudio AudioClip at the top of the class; use Alt+Enter to add
an import


Figure 21-23. Create a loadAudioAssets() method call after loadImageAssets(); use Alt+Enter to have
NetBeans code it

Free download pdf