79079897

Date: 2024-10-11 23:09:39
Score: 1
Natty:
Report link
        SDL_Rect score_one;
        score_one.x = 800;
        score_one.y = 600;

        int score = 0;
        char buffer[50];
        sprintf_s(buffer, "%d", score);
        SDL_Surface* screen=NULL;
        SDL_Surface* surface=NULL;
        SDL_Color textColor = { 255, 255, 255, 0 };

        surface = TTF_RenderText_Solid(font, buffer, textColor);
        SDL_BlitSurface(surface, NULL, gScreenSurface, &score_one);

Prev 1 2enter code here

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gamer67