Game Development Reference
In-Depth Information
bel
's
verticalAlignmentMode
to
SKLabelVerticalAlign-
mentMode.Bottom
, as shown here:
simpleLabel.verticalAlignmentMode
= SKLabelVerticalAlignmentMode.Bottom
Once you have made this change, run the application again. You will now see that the text
has shifted up so that the bottom of the text is at
simpleLabel
's origin, as shown in
Figure 7-7
.
The simple SKLabelNode example with its verticalAlignmentMode set to SKLabelVerticalAlign-
mentMode.Bottom
Adding Scoring to the Game