28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Figure 14-18. Add Prop object declaration, name it iPR0 (invincibagel Prop zero), and add an iP0 to Image<br />

declaration<br />

Before we can instantiate the Image objects, we need to copy the Image assets into the /src folder, so use a file<br />

management software package (I used Windows Explorer) to copy the prop0.png and prop1.png PNG8 image files in<br />

with the other dozen or so image assets you have installed in the game project already, as is shown in Figure 14-19.<br />

Figure 14-19. Use your file management software to copy the prop0 and prop1 PNG8 files into the project /src folder<br />

311

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

Saved successfully!

Ooh no, something went wrong!