Game Development Reference
In-Depth Information
Figure 14-14
.
A completed PropH() constructor method creates a fixed PropH object flipped along the horizontal X
axis
Next, perform the same work process that you did for the PropH class and create a
PropV
class that sets the
isFlipV
property to
true
, and implements the
spriteFrame.setScaleY(-1);
method call, as shown in
Figure 14-15
.