Centralize location of memory pools
This commit centralizes the location of memory pools and adds an associated script (scripts/get_memory_map.sh) to read the memory map.
This commit is contained in:
@@ -11,14 +11,6 @@
|
||||
|
||||
#include "pool.h"
|
||||
|
||||
#define MAX_CARDS_PER_HAND (NUM_SUITS * NUM_RANKS)
|
||||
#define MAX_CARDS_ON_SCREEN 16
|
||||
|
||||
POOL_DECLARE_TYPE(Card);
|
||||
POOL_DEFINE_TYPE(Card, MAX_CARDS_PER_HAND);
|
||||
POOL_DECLARE_TYPE(CardObject);
|
||||
POOL_DEFINE_TYPE(CardObject, MAX_CARDS_ON_SCREEN);
|
||||
|
||||
// Card sprites lookup table. First index is the suit, second index is the rank. The value is the tile index.
|
||||
const static u16 card_sprite_lut[NUM_SUITS][NUM_RANKS] = {
|
||||
{0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192},
|
||||
|
||||
Reference in New Issue
Block a user