GBA Font Question
4 replies to this topic
Members - Reputation: 372
Posted 02 February 2002 - 03:26 AM
What''s the best way for using a font for the GBA such that you can print any text anywhere on the screen at any time? I know how you can do it in modes 3-5 (because you can just copy the data into memory). Is there any way to do it using a tiled mode? I thought about using a background for it, but then all of the text on the screen at once has to be printed aligned with an 8-pixel grid. Also, if I created 96 separate sprites for each character from '' '' to ''~'' (and the character after ''~''), then I would only have 32 left to work with. Does anyone have any ideas?
Members - Reputation: 852
Posted 02 February 2002 - 12:11 PM
Well, you could use each letter as a tile on one of the BGs as you said, it''s not too much trouble, unless you really need more freedom. If you do then as you said again your other option is to us sprites. What I''ve found is that sometimes a game will put whole words on a sprite/tile like ''the'' and ''to'' and ''score'' and other words that are frequent or consistent from frame to frame, so that way with tiled text your letters can fit together as you please, and with sprite text you cut down on the number of sprites you''re using.
- outRider -
- outRider -
Members - Reputation: 122
Posted 17 June 2002 - 05:29 AM
Hmm... Can you use overlap with the tiles? Otherwise I''d think that you might get some irregular spacing with letters like "l" or "i". I suppose you''ll use 8x4 tiles or something along those lines? Or is there a means to use irregular sized sprites?