diff --git a/travail_de_groupe/chef_oeuvre/Res/fire_spritesheet.png b/travail_de_groupe/chef_oeuvre/Res/fire_spritesheet.png new file mode 100755 index 0000000000000000000000000000000000000000..5d4c8fb76341e7f72f61bbc2eb20c55db3415567 Binary files /dev/null and b/travail_de_groupe/chef_oeuvre/Res/fire_spritesheet.png differ diff --git a/travail_de_groupe/chef_oeuvre/src/render.c b/travail_de_groupe/chef_oeuvre/src/render.c index 56ca25b2145cdf93c8e75cb4694c5c56e29ae9c9..8b2c1b966ec3f82c2600937a9ad297cf18485477 100644 --- a/travail_de_groupe/chef_oeuvre/src/render.c +++ b/travail_de_groupe/chef_oeuvre/src/render.c @@ -184,7 +184,7 @@ void drawFire(){ while (cour != NULL){ rect.h = 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; SDL_RenderCopy(renderer, fireTexture, &srcRect, &rect); cour = cour->next;