4 #include <SDL2/SDL_ttf.h>
55 SDL_Renderer* renderer;
59 SDL_Surface* spriteSheet;
67 SDL_Surface* surface{};
Represents various score displayed in the game.
Definition: PlayerScore.h:10
void Draw()
The method to draw or render the score on the screen.
Definition: PlayerScore.cpp:29
void SetStar()
This method will load and set star icon to indicate the points scored by the player.
Definition: PlayerScore.cpp:88
~PlayerScore()
The destructor for playerScore.
Definition: PlayerScore.cpp:23
void SetHeart()
The method will load and set heart icon to indidcate lives left.
Definition: PlayerScore.cpp:48
void setFlag(int language)
This method will upload and set the flag icon for the language being used.
Definition: PlayerScore.cpp:65
PlayerScore(Vec2 position, SDL_Renderer *ren, TTF_Font *font)
The constructor for PlayerScore that takkes in Position, Renderer and font as an argument.
Definition: PlayerScore.cpp:8
void SetText(const char *text)
The method to set and update text.
Definition: PlayerScore.cpp:105
void SetScore(int score)
The method to set and update score.
Definition: PlayerScore.cpp:34
Vec2 will abstract X&Y position for ball and paddle.
Definition: Vec2.h:6
GLuint texture
Definition: glad.h:2396