Game Development Reference
In-Depth Information
This parameter, however, asks for a color in the form of a vector, so the Direc-
tX::Colors namespace gives us access to many pre-defined common colors that
you might want to use. In this case we're using green for the text, which you'll be
able to see when you run the game.
If you run your game now you should see some text in the top-left corner of the
screen, with the tint color you chose (green if you are following along).
Try changing the tint color or moving the text around the screen. There are plenty
of things you can do with just some simple text. Change the font and take a look at
the other overloads in SpriteFont . Rendering text can be a challenge to get right;
it can break the feel of the game if it doesn't fit in. Experiment and find what fits for
your visual style.
Search WWH ::




Custom Search