1
0

Ajout du retournement des cartes lors du clic

This commit is contained in:
Lyanis SOUIDI 2022-12-03 23:25:38 +01:00
parent 5ece1b70c4
commit 8fe62b8b47

View File

@ -85,6 +85,17 @@ int game(int colonnes, int lignes) {
boucle = 1;
while (boucle) {
update_timer(timer);
SourisPosition();
if (SourisCliquee()) {
for (l = 0; l < lignes; l++) {
for (c = 0; c < colonnes; c++) {
if (check_zone(cards[l][c].zone, _X, _Y)) {
cards[l][c] = show_card(cards[l][c]);
}
}
}
}
}
return fin(timer);