Correction du chemin d'accès des images
- Correction de l'extension des fichiers d'image de carte (.png -> .jpg)
This commit is contained in:
parent
f324a4524b
commit
27af325994
@ -69,7 +69,7 @@ int game(int colonnes, int lignes) {
|
|||||||
i=0;
|
i=0;
|
||||||
for (l = 0; l < lignes; l++) {
|
for (l = 0; l < lignes; l++) {
|
||||||
for (c = 0; c < colonnes; c++) {
|
for (c = 0; c < colonnes; c++) {
|
||||||
sprintf(file, "img/cards/%dx%d/%d.png", colonnes, lignes, tab[i]);
|
sprintf(file, "img/cards/%dx%d/%d.jpg", colonnes, lignes, tab[i]);
|
||||||
cards[l][c] = create_card(
|
cards[l][c] = create_card(
|
||||||
GAME_MARGIN_RIGHT + (((WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT)) - (case_max_dimensions * colonnes)) / 2) + (c * case_max_dimensions),
|
GAME_MARGIN_RIGHT + (((WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT)) - (case_max_dimensions * colonnes)) / 2) + (c * case_max_dimensions),
|
||||||
GAME_MARGIN_TOP + (((WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM)) - (case_max_dimensions * lignes)) / 2) + (l * case_max_dimensions),
|
GAME_MARGIN_TOP + (((WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM)) - (case_max_dimensions * lignes)) / 2) + (l * case_max_dimensions),
|
||||||
|
Loading…
Reference in New Issue
Block a user