Merge branch 'main' of https://github.com/cellos51/balatro-gba into boss_backgrounds
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#define MAX_JOKERS_HELD_SIZE 5 // This doesn't account for negatives right now.
|
||||
#define MAX_SHOP_JOKERS 2 // TODO: Make this dynamic and allow for other items besides jokers
|
||||
#define MAX_SELECTION_SIZE 5
|
||||
#define MAX_CARD_SCORE_DIGITS 2 // Current digit limit for score received from cards including mult etc. from jokers
|
||||
#define MAX_CARD_SCORE_STR_LEN (MAX_CARD_SCORE_DIGITS + 1) // For the '+' or 'X'
|
||||
#define FRAMES(x) (((x) + game_speed - 1) / game_speed)
|
||||
|
||||
// TODO: Turn into enum?
|
||||
@@ -77,9 +79,12 @@ typedef struct CardObject CardObject; // forward declaration, actually declared
|
||||
typedef struct JokerObject JokerObject;
|
||||
CardObject** get_hand_array(void);
|
||||
int get_hand_top(void);
|
||||
int hand_get_size(void);
|
||||
CardObject** get_played_array(void);
|
||||
int get_played_top(void);
|
||||
JokerObject** get_jokers(void);
|
||||
int get_jokers_top(void);
|
||||
|
||||
int get_num_discards_remaining(void);
|
||||
|
||||
#endif // GAME_H
|
||||
@@ -43,6 +43,9 @@
|
||||
// Tile size in pixels, both height and width as tiles are square
|
||||
#define TILE_SIZE 8
|
||||
|
||||
// By default TTE characters occupy a single tile
|
||||
#define TTE_CHAR_SIZE TILE_SIZE
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int left;
|
||||
|
||||
@@ -10,5 +10,8 @@
|
||||
#include "joker_gfx6.h"
|
||||
#include "joker_gfx7.h"
|
||||
#include "joker_gfx8.h"
|
||||
#include "joker_gfx9.h"
|
||||
#include "joker_gfx10.h"
|
||||
#include "joker_gfx11.h"
|
||||
|
||||
#endif
|
||||
@@ -37,6 +37,8 @@ static inline int get_digits_even(int n)
|
||||
|
||||
#define NUM_ELEM_IN_ARR(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
#define INT_MAX_DIGITS 10 // strlen(str(INT_MAX)) = strlen("2147483647")
|
||||
|
||||
int int_arr_max(int int_arr[], int size);
|
||||
|
||||
#endif // UTIL_H
|
||||
Reference in New Issue
Block a user