Skip to content
Snippets Groups Projects
Commit d54e2e6c authored by Taha Belkhiri's avatar Taha Belkhiri
Browse files

new fire sprites

parent 2394f25d
Branches
No related tags found
No related merge requests found
travail_de_groupe/chef_oeuvre/Res/fire_spritesheet.png

1.33 KiB

...@@ -184,7 +184,7 @@ void drawFire(){ ...@@ -184,7 +184,7 @@ void drawFire(){
while (cour != NULL){ while (cour != NULL){
rect.h = CELLSIZE * (cour->fire).state; rect.h = CELLSIZE * (cour->fire).state;
rect.w = CELLSIZE * (cour->fire).state; rect.w = CELLSIZE * (cour->fire).state;
rect.x = (cour->fire).x * CELLSIZE + (screenDimension.w - (MAPSIZE * CELLSIZE)) / 2; rect.x = (cour->fire).x * CELLSIZE + (screenDimension.w - (MAPSIZE * CELLSIZE)) / 2 - rect.w/2;
rect.y = (cour->fire).y * CELLSIZE; rect.y = (cour->fire).y * CELLSIZE;
SDL_RenderCopy(renderer, fireTexture, &srcRect, &rect); SDL_RenderCopy(renderer, fireTexture, &srcRect, &rect);
cour = cour->next; cour = cour->next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment