Error!
Success!

XNA - Displaying Centred Text

0
kicks

XNA - Displaying Centred Text  (Unpublished)

Here is a couple of quick lines of code that will allow you to display some text on the screen that is centred. When using this sample it will calculate the length of the text, then work out the exact centre of the screen. Then using the normal sprite origin functions it will work out the exact centre of the text and position it on the screen.


Kicked By:
Drop Kicked By: