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 />

Figure 14-27. Add an iPR1 Prop declaration (shown with all other PropH, PropV and PropB declarations) and iP1 Image<br />

Copy your iP0 Image instantiation, creating an iP1 Image, referencing prop1.png, as shown in Figure 14-28.<br />

Figure 14-28. Add the iP1 Image object instantiation using the prop1.png file name, and the 496 by 92 pixel image size<br />

318<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!