Jump to content

  • Log In with Google      Sign In   
  • Create Account


GBA Font Question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Aprosenf   Members   -  Reputation: 372

Like
Likes
Like

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?

Sponsor:

#2 outRider   Members   -  Reputation: 852

Like
Likes
Like

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 -

#3 megajocke   Members   -  Reputation: 123

Like
Likes
Like

Posted 05 June 2002 - 09:10 AM

Create sprites only for the letters on the screen, and if you do like creating one for each letter as you wrote, how would you be able to use that letter twice?

Joakim Asplund
http://megajocke.cjb.net

#4 outRider   Members   -  Reputation: 852

Like
Likes
Like

Posted 16 June 2002 - 05:07 PM

If a letter appears twice you use 2 OBJs in OAM for it, but have them both reference the same bitmap data for the letter.

------------
- outRider -

#5 CGalyon   Members   -  Reputation: 122

Like
Likes
Like

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?

Charles Galyon




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS