Defining a basic system for jokers

This commit is contained in:
cellos51
2025-07-17 21:47:50 -04:00
parent ea2e503222
commit 4a5644eddb
10 changed files with 139 additions and 23 deletions
+4 -6
View File
@@ -6,10 +6,10 @@
#include "card.h"
#include "game.h"
#include "blind.h"
#include "joker.h"
#include "graphic_utils.h"
// Graphics
#include "deck_gfx.h"
#include "background_gfx.h"
#include "affine_background_gfx.h"
@@ -60,10 +60,6 @@ void init()
pal_bg_bank[14][15] = 0x213F; // Red
pal_bg_bank[15][15] = CLR_WHITE;
// Deck graphics
GRIT_CPY(&tile_mem[4], deck_gfxTiles);
GRIT_CPY(pal_obj_mem, deck_gfxPal);
// Set up the video mode
// BG0 is the TTE text layer
REG_BG0CNT = BG_PRIO(0) | BG_CBB(TTE_CBB) | BG_SBB(TTE_SBB) | BG_4BPP;
@@ -101,7 +97,9 @@ void init()
// Initialize subsystems
sprite_init();
blinds_init();
card_init();
blind_init();
joker_init();
game_init();
}