Working with cards and vblanking

This commit is contained in:
2022-05-08 20:11:52 -07:00
parent 4ff43893d0
commit a6dbca6a90
20 changed files with 665 additions and 84 deletions

View File

@@ -44,7 +44,7 @@ void questionBoxSetOptions(char *title, char **options, uint8_t count) {
// Repurpose old array and draw arrow
spaces[0] = spriteFontTileFromChar(QUESTION_BOX_CURSOR);
set_bkg_tiles(0x01, TEXTBOX_WIN_Y + 0x02, 1, 1, spaces);
spriteBufferBackgroundHigh(0x01, TEXTBOX_WIN_Y + 0x02, 1, 1, spaces);
}
inline void questionBoxUpdate() {
@@ -76,7 +76,7 @@ inline void questionBoxUpdate() {
} else {
tiles[0] = spriteFontTileFromChar(' ');
}
set_bkg_tiles(
spriteBufferBackgroundHigh(
0x01 + ((i % 0x02) * QUESTION_BOX_QUESTION_SPACES),
TEXTBOX_WIN_Y + 0x02 + (i / 0x02),
1, 1,