Add affine background color functionality and integrate into game loop

This commit is contained in:
cellos51
2025-08-05 14:35:52 -04:00
parent 46b53db8a0
commit 592d7ae8bc
5 changed files with 85 additions and 58 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef AFFINE_BACKGROUND_H
#define AFFINE_BACKGROUND_H
#include <tonc.h>
#include "graphic_utils.h"
#define AFFINE_BG_PAL_LEN 5
#define AFFINE_BG_PB (PAL_ROW_LEN * 15) // This isn't really a palette bank, just the starting index of the palette
#define AFFINE_BG_DEFAULT_COLOR 0x3E4B
void affine_background_init();
void affine_background_update();
void affine_background_set_color(COLOR color);
#endif // AFFINE_BACKGROUND_H