Game Development Reference
In-Depth Information
make sure that they all work in the way that we designed them to. We will also add an
iP0 Image object declaration, and later on an iP1 Image object declaration, to the end
of the Image iB0 through iB8 declarations. The Java statements are shown in
Figure
Prop
iPR0
;
private Image iB0, iB1, iB2, iB3, iB4, iB5, iB6, iB7,
iB8,
iP0
;
Figure 14-18
.
Add Prop object declaration, name it iPR0 (invincibagel Prop zero), and add an iP0 to Image declar-
ation
Before we can instantiate the Image objects, we need to copy the Image assets into
the
/src
folder, so use a file management software package (I used Windows Explorer)
to copy the
prop0.png
and
prop1.png
PNG8 image files in with the other dozen or so
image assets you have installed in the game project already, as is shown in
Figure