Finished textbox, learned that windows aren't transparent

This commit is contained in:
2022-04-20 23:38:14 -07:00
parent 1fa9cf453e
commit 45228018f2
5 changed files with 27 additions and 22 deletions

View File

@@ -137,8 +137,9 @@ void main() {
// Set up the GAMEBOY's registers.
disable_interrupts();
DISPLAY_OFF;
LCDC_REG = LCDCF_OFF | LCDCF_WIN9C00 | LCDCF_BG8800 | LCDCF_BG9800 | LCDCF_BGON;
BGP_REG = 0xE4U;
LCDC_REG = LCDCF_OFF | LCDCF_WIN9C00 | LCDCF_WINON | LCDCF_BG8800 | LCDCF_BG9800 | LCDCF_BGON;
// Set the background color palette register
BGP_REG = OBP0_REG = OBP1_REG = 0xE4U;
// Init the random seed
initarand(DIV_REG);
@@ -154,23 +155,21 @@ void main() {
// pokerInit();
// Fill screen white
for(j = 0; j < 0x20*0x20; j++) filled[j] = COMMON_TILE_3;
for(j = 0; j < GB_BACKGROUND_COLUMNS * GB_BACKGROUND_ROWS; j++) filled[j] = COMMON_TILE_3;
set_bkg_tiles(0x00, 0x00, GB_BACKGROUND_COLUMNS, GB_BACKGROUND_ROWS, filled);
SCX_REG = 0x00;
SCY_REG = 0x00;
// Alright begin the game logic here.
// conversationQueueNext();
char DEBUG_TEXT[] = "Hello World\nThe quick brown fox jumps over the lazy dog. How now brown cow? The fitness gram pacer test";
conversationTextboxSetText(DEBUG_TEXT);
// Now turn the screen on
DISPLAY_ON;
enable_interrupts();
wait_vbl_done();
// Alright begin the game logic here.
// conversationQueueNext();
char DEBUG_TEXT[] = "Hello World\nThe quick brown fox jumps over the lazy dog. How now brown cow? The fitness gram pacer test is a";
// uint8_t DEBUG_TEXT_LENGTH = strlen(DEBUG_TEXT);
// for(j = 0; j < DEBUG_TEXT_LENGTH; j++) DEBUG_TEXT[j] = DEBUG_TEXT[j] - 33 + 4;
conversationTextboxSetText(DEBUG_TEXT);
// Begin the loop
while(1) {
// Wait for VSYNC