Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
I want the background to be black. But whenever I put text on the screen, no matter what way, the background turns to white. How do I stop it from doing this?
Offline
If your issue can happen to a lot of people I think you should post how you resolved it, it could help someone with the problem and searching for a solution
Last edited by Hell_666 (2017-12-16 17:17:27)
Offline
from my new game I'm working on:
void get_font() { set_bkg_data(0x30, 0x0A, number_tile_data); set_bkg_data(0x40, 0x0A, alphabet_tile_data); set_bkg_data(0x4A, 0x09, alphabet_tile_data2); set_bkg_data(0x53, 0x09, alphabet_tile_data3); } void main() { unsigned char randomthing = *(ptr_div_reg); BGP_REG = 0x27U; printf(" "); get_font(); gotoxy(8,15); printf("2018"); // should show up as white text on black background
I made outer space white and changed the white to black with the BGP_REG command. Earlier it still was displaying black text on white even though I was using the BGP_REG command. So I added a blank printf command before I got the font loaded and that seemed to please it.
Offline
26F wrote:
What does BGP_REG = 0x27U; actually do?
BGP_REG is BG palette data.
Offline
Reasons not to use GBDK...
Also, `printf` should never be used on GB.
Offline