Game Development Reference
In-Depth Information
invinciBagel.playiSound5(); }
}
Figure 15-20 . Add conditional if() statements to the .playAudioClip() method that call the correct .playiSound() meth-
od
Now we have added digital audio to our game engine infrastructure, and all we
have to do later is swap out the voiceovers with sound effects, and we will have the di-
gital audio portion of our game development completed. If you use a Run Project
work process and test the code, you will find that audio samples trigger rapidly using
JavaFX.
Summary
In this fifteenth chapter, we changed our focus from how our game looks to our eyes
(visual) and addressed how it sounds to our ears (aural), and took a chapter to imple-
ment the code for the AudioClip class so that we can trigger digital audio sound ef-
fects .
 
Search WWH ::




Custom Search