Finalized graphics

This commit is contained in:
Remnants of Forgotten Disney
2023-11-18 19:35:30 -06:00
parent ead09e0b49
commit f7120e97bb
27 changed files with 64 additions and 39 deletions

View File

@@ -19,10 +19,14 @@ bool disabled;
void init_text_engine()
{
// Load the TTE
tte_init_se(3, BG_CBB(TEXT_CBB) | BG_SBB(TEXT_SBB) | BG_PRIO(0), 0xF000, 0b0001100011100110, 0, &pkmn_fontFont, NULL);
tte_init_se(3, BG_CBB(TEXT_CBB) | BG_SBB(TEXT_SBB) | BG_PRIO(0), 0, CLR_WHITE, 14, &pkmn_fontFont, NULL);
tte_set_margins(LEFT, TOP, RIGHT, BOTTOM);
tte_set_pos(LEFT, TOP);
pal_bg_bank[14][15]= 0b0000001001111111;
pal_bg_bank[15][15]= 0b0001100011100110;
// Set default variables
curr_line = script[SCRIPT_START];
char_index = 0;
@@ -42,7 +46,6 @@ void text_next_frame()
{
char_index++;
tte_erase_rect(LEFT, TOP, RIGHT, BOTTOM);
tte_set_ink(CLR_RED);
tte_write(curr_text.substr(0, char_index).c_str());
}
}