Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
possibilite de reset les scores
Browse files Browse the repository at this point in the history
appuyer qqpart sur affichage profils
  • Loading branch information
AymericLeFeyer committed Dec 12, 2019
1 parent d6b8798 commit 50cfc80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Binary file modified main.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions profils.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AYMERIC 0 89.000000 25.000000 100.000000 100.000000 78.000000
DYLAN 1 0.000000 75.000000 0.000000 0.000000 18.000000
AYMERIC 0 0.000000 0.000000 0.000000 0.000000 0.000000
DYLAN 1 0.000000 0.000000 0.000000 0.000000 0.000000
ANGELE 2 0.000000 0.000000 0.000000 0.000000 0.000000
STEVEN 3 0.000000 0.000000 0.000000 100.000000 25.000000
STEVEN 3 0.000000 0.000000 0.000000 0.000000 0.000000
GUILLOM 4 0.000000 0.000000 0.000000 0.000000 0.000000
ANMZO 5 0.000000 0.000000 0.000000 0.000000 -1.000000
AAAAAAA 6 0.000000 0.000000 0.000000 0.000000 -1.000000
Expand Down
11 changes: 11 additions & 0 deletions sources/profils/choixProfils.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ int afficherProfils(SDL_Surface *screen)
continuer = 0;
sauvegardeProfils(profils);
break;
case SDL_KEYDOWN:
// Reset scores
for (int i = 0; i < 10; i++) {
profils[i].scoreNavale = 0;
profils[i].scoreSudoku = 0;
profils[i].scoreLoto = 0;
profils[i].scorePoker = 0;
profils[i].scorePoker = 0;
sauvegardeProfils(profils);
}
break;
case SDL_MOUSEBUTTONDOWN:

for (int i = 0; i < 10; i++)
Expand Down

0 comments on commit 50cfc80

Please sign in to comment.