This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:discrete:fall2023:projects:yol0 [2023/10/17 23:35] – [Creating a custom font] walley | notes:discrete:fall2023:projects:yol0 [2023/10/18 02:50] (current) – [yol0] mfee1 | ||
---|---|---|---|
Line 32: | Line 32: | ||
define_region_matrix( FirstRegionTextFont, | define_region_matrix( FirstRegionTextFont, | ||
</ | </ | ||
+ | |||
+ | After calling select_texture() , all texture functions will apply to that texture from that moment. | ||
===scaling numbers=== | ===scaling numbers=== | ||
Line 62: | Line 64: | ||
Lastly, we run a while loop until '' | Lastly, we run a while loop until '' | ||
+ | |||
+ | ====Drawing strings using a custom font==== | ||
+ | Vircon32 stores string values as an array of integers containing the ASCII value for the given character. Since our font sheet uses a different ID system to the ASCII standard, they' | ||
+ | |||
+ | The main while loop for printing out strings is roughly the same as our function for printing integers. Once the proper texture region ID is selected, it prints out and the positional data is adjusted. | ||