|
Post by GiGaBiTe on Feb 24, 2005 3:49:00 GMT -5
i was using the print command to print text on the screen. is there a way to make the font smaller or bigger?
|
|
|
Post by haroldoop on Feb 24, 2005 5:36:12 GMT -5
Actually, due to the way Sega Genesis' VDP works, no. Unless you coded some VWF routines.
|
|
|
Post by Tom Maneiro on Feb 24, 2005 19:44:16 GMT -5
VWF?
Anyway, font chars are single 8*8 tiles
|
|
|
Post by haroldoop on Feb 25, 2005 6:02:46 GMT -5
VWF stands for Variable Width Font. It's done by modifying the tileset on the fly. There's a VWF library available at shen.mansell.tripod.com/games/gameboy/truetext.zip. Although it's designed for GameBoy, it could be easily adapted to Sega Genesis, since its source code is in C.
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Feb 26, 2005 10:54:06 GMT -5
VWF requires a frame buffer, and that's what the genesis doesn't have, unless you allocate the tiles around to make it similiar to a frame buffer. for a 320x224 screen, (320*224/64)*16=35840 bytes, so there isn't a problem with memory requirements ;D
|
|
|
Post by haroldoop on Feb 26, 2005 19:12:13 GMT -5
Well, this is exactly what Shen Mansell's library (cited above) does. We would just have to adapt the hardware-specific routines from GBC to Genesis.
|
|
|
Post by MaskofDestiny on Mar 4, 2005 0:52:43 GMT -5
On the Genesis you could probably cheat by using sprites as long as you don't need more than twenty characters across the screen (well 23 if you use both background layers and the window layer as well). You could use Raster F/X to change the sprite list address between lines of text to get around the 80 sprite limitation.
EDIT: It's also worth mentioning that making the text bigger is actually pretty easy as long as all of your characters are a multiple of 8*8.
|
|