21 lines
414 B
C
21 lines
414 B
C
#ifndef SCORE_H
|
|
#define SCORE_H
|
|
|
|
#include "text.h"
|
|
|
|
static const int SCORE_WIDTH = 50;
|
|
static const int SCORE_HEIGHT = 50;
|
|
static const FcChar8 *SCORE_FONT_STYLE = "Bold";
|
|
static const int SCORE_FONT_PTSIZE = 16;
|
|
|
|
typedef struct Score {
|
|
int score;
|
|
Text *text;
|
|
} Score;
|
|
|
|
Score* Score_init(int posX, int posY);
|
|
void Score_free(Score* score);
|
|
int Score_render(const Score* score, SDL_Renderer *renderer);
|
|
|
|
#endif
|