Correction du chemin d'accès vers les images
- Retrait du "../" dans le chemain d'accès vers les images car après la compilation le fichier éxécutable final se trouve à la racine du dépot
This commit is contained in:
parent
deb9868be4
commit
f324a4524b
@ -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.png", 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