Skip to content
Snippets Groups Projects
Commit b9c685ef authored by belkhiritaha's avatar belkhiritaha
Browse files

update graphique

parent a417da2f
Branches
No related tags found
No related merge requests found
...@@ -279,6 +279,12 @@ void drawPlayerHP(){ ...@@ -279,6 +279,12 @@ void drawPlayerHP(){
count--; count--;
SDL_RenderCopy(renderer, heartTexture, &destRect, &rect); SDL_RenderCopy(renderer, heartTexture, &destRect, &rect);
} }
else {
SDL_SetTextureColorMod( heartTexture,0,0,0);
SDL_RenderCopy(renderer, heartTexture, &destRect, &rect);
SDL_SetTextureColorMod( heartTexture,255,255,255);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment