This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:comporg:fall2023:projects:yol0 [2023/09/28 20:20] – [Drawing integers using a custom font] walley | notes:comporg:fall2023:projects:yol0 [2023/09/28 20:24] (current) – [Drawing strings using a custom font] walley | ||
---|---|---|---|
Line 15: | Line 15: | ||
Lastly, we run a while loop until '' | Lastly, we run a while loop until '' | ||
====Drawing strings using a custom font==== | ====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. |