|
Post by Sal on Oct 5, 2005 8:15:26 GMT -5
Ive just finished coding a little application in basic. But i just learned basic to do this. so im not too advanced with all the sysntex.
Simple question. Can i increase the Font size on the Print out? or its only one size and 3 ink colors.
Thanks
|
|
|
Post by Tulio Adriano on Oct 7, 2005 10:15:28 GMT -5
Well, in fact there are no fonts in MegaDrive or BasiEgaXorz. What happens when you command: Print "Hey!" is that the print function is drawing tiles from the memory in the screen position where it's being printed, so if you want larger fonts, you will need to modify the video memory for that. First of all, those font tiles used in Bex are using the maximum size for each character inside a tile, wich is 8x8. A larger font will require more than one tile. For example, I made a Pong game for the Sega Genesis (you can find it here: www.seganet.com.br/backup/megadrive_files/megadrive_gennypong.zip) where I wanted to display the score using larger fonts. For that I needed to design the new font graphics and load them in the memory. Each new character took 4 tiles lenght (16x16 px). So that's it. If you want larger fonts you need to design them, and create a function that will load the tiles and display in the position you want. If you're new in MegaDrive programming you may be just thinking what I thought an year ago: "Wow, those programmers from that time are gods!". Cya!
|
|
|
Post by Sal on Oct 8, 2005 20:26:56 GMT -5
Perfect reply. Thanks alot.
I suspected thats what I have to do. Just another maybe simple question. Would it be possible to load bin images instead of drawing tiles for each font?
and are there any sample codes that would show how to drop in images in a running program?
Thanks again.
|
|
|
Post by Tom Maneiro on Oct 11, 2005 9:39:40 GMT -5
Yes! Check the docs, and in the EXAMPLES folder of your BEX dir!
You may want even to replace the font, by simply loading a new tileset with the desired 8x8 font, overwriting the original one.
|
|