Splib + fonts (FZX?)
Posted: Sat Aug 03, 2019 10:18 pm
Hi,
I might be confused, but I was checking how to use fonts in my new game, but I didn't found the way to go.
I'm theorically using my own font, but now I don't know how to print it on the screen.
https://github.com/jsmolina/z88dk-tutor ... l/45/files
In theory I'm replacing _ff_ao_Prefect.asm as I read in another thread here, but I don't know how it connects to the API.
I'm usually painting with
sp1_PrintAt(0, 2, INK_WHITE | PAPER_BLACK, '1');
sp1_PrintAt(0, 3, INK_WHITE | PAPER_BLACK, 'U');
sp1_PrintAt(0, 4, INK_WHITE | PAPER_BLACK, 'P');
sp1_PrintAt(0, 5, INK_WHITE | PAPER_BLACK, '-');
Of course I could replace 1, U, P with the UDGs and it will work, but it will be so memory uneficient.
But I guess that's not the way to go, so I got lost on printing texts and showing with proper font instead of default ones.
Lot of thanks, again
I might be confused, but I was checking how to use fonts in my new game, but I didn't found the way to go.
I'm theorically using my own font, but now I don't know how to print it on the screen.
https://github.com/jsmolina/z88dk-tutor ... l/45/files
In theory I'm replacing _ff_ao_Prefect.asm as I read in another thread here, but I don't know how it connects to the API.
I'm usually painting with
sp1_PrintAt(0, 2, INK_WHITE | PAPER_BLACK, '1');
sp1_PrintAt(0, 3, INK_WHITE | PAPER_BLACK, 'U');
sp1_PrintAt(0, 4, INK_WHITE | PAPER_BLACK, 'P');
sp1_PrintAt(0, 5, INK_WHITE | PAPER_BLACK, '-');
Of course I could replace 1, U, P with the UDGs and it will work, but it will be so memory uneficient.
But I guess that's not the way to go, so I got lost on printing texts and showing with proper font instead of default ones.
Lot of thanks, again