pong/src/score.h

23 lines
407 B
C

#ifndef SCORE_H
#define SCORE_H
#include <SDL.h>
#include <SDL_ttf.h>
static const int SCORE_WIDTH = 50;
static const int SCORE_HEIGHT = 50;
typedef struct Score {
const int POSX;
const int POSY;
int score;
TTF_Font *font;
SDL_Color textColor;
} Score;
Score* Score_init(int posX, int posY);
void Score_free(Score* score);
int Score_render(const Score* score, SDL_Renderer *renderer);
#endif