Implementing Game Audio Assets: Using the JavaFX AudioClip Class Audio Sequencing Engine
Now that we have created both motion sprite and fixed sprite classes using our abstract Actor (fixed sprites) and Hero (motion sprites) superclasses, we need to put the code into place that will play our game audio assets. Although generally not thought of as being as important as the digital image (visual) assets, digital audio (aural) assets can be quite important to the quality of your game play. In fact, you would be surprised how much that great audio assets can add to the perceived value of your Java 8 game products. We will be learning how to optimize and implement digital audio assets for your Java 8 game development during this chapter, using open source tools such as Audacity 2.