Ajout du retournement des cartes lors du clic
This commit is contained in:
parent
5ece1b70c4
commit
8fe62b8b47
11
src/game.c
11
src/game.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user