28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 14 ■ Setting Up the Game Environment: Creating Fixed Sprite Classes Using the Actor Superclass<br />

Finally, we tested two of these four new fixed sprite classes with larger props, which, if we do not define the fixed<br />

sprite objects for use in collision detection by adding them into the CastingDirector object, could conceivably be used<br />

for scene background compositing. This would help reduce the data footprint for the game, by minimizing use of<br />

large PNG24 background imagery, allowing us to replace these data heavy images with far smaller PNG8 background<br />

images. These could depict scene “settings,” such as a rainy day, a cloudy sky, or a vivid sunset.<br />

In the next chapter, we are going take a look at how to add a digital audio sound effects engine to our game code.<br />

This audio engine will use the <strong>Java</strong>FX AudioClip class to add sound effect sequencing capabilities to the game, so that<br />

we have all of the basic new media elements (fixed and motion imagery, and audio feedback) to work, with when we<br />

get into adding things such as like physics and collision detection. In this way, we can start to add in multimedia that<br />

will utilize all of our player’s senses in the game play (user) experience.<br />

321

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!