Centering Text
Posted: Sun May 16, 2004 5:49 am
I have what amounts to an epigram page that is essentially going to flash a quote at the player before the game proper begins. What I am wondering is what is the best way to center text on the screen?
With this, I should probably mention that my text is not just one line. Here is the quote I would be using:
"I became possessed with the keenest curiosity about"
"the whirl itself. I positively felt a wish to explore"
"its depths, even at the sacrifice I was going to make;"
"and my principal grief was that I should never be able"
"to tell my old companions on shore about the mysteries"
"I should see."
" - Edgar Allan Poe, \IA Descent into the Maelstrom\i, 1840"
I do see some code in the game "Guilty Bastards" that seems to point the way, but I wanted to get other people's take on this in terms of what they felt was the easiest way to center text like this by itself on the screen.
Any advice and/or thoughts would be appreciated. Thanks.
With this, I should probably mention that my text is not just one line. Here is the quote I would be using:
"I became possessed with the keenest curiosity about"
"the whirl itself. I positively felt a wish to explore"
"its depths, even at the sacrifice I was going to make;"
"and my principal grief was that I should never be able"
"to tell my old companions on shore about the mysteries"
"I should see."
" - Edgar Allan Poe, \IA Descent into the Maelstrom\i, 1840"
I do see some code in the game "Guilty Bastards" that seems to point the way, but I wanted to get other people's take on this in terms of what they felt was the easiest way to center text like this by itself on the screen.
Any advice and/or thoughts would be appreciated. Thanks.