2022-11-20 13:50:33 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <graph.h>
|
|
|
|
#include <stdio.h>
|
2022-11-24 20:12:13 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include "ChargerMainMenu.h"
|
2022-11-28 10:16:28 +01:00
|
|
|
#include "Jeu.h"
|
2022-11-20 13:50:33 +01:00
|
|
|
|
2022-11-24 20:12:13 +01:00
|
|
|
int main() {
|
|
|
|
int mainMenu=1;
|
2022-11-20 13:50:33 +01:00
|
|
|
InitialiserGraphique();
|
|
|
|
CreerFenetre(10,10,1300,760);
|
2022-11-24 20:12:13 +01:00
|
|
|
int i;
|
|
|
|
ChargerMainMenu();
|
|
|
|
while(mainMenu) {
|
|
|
|
if (SourisCliquee()) {
|
|
|
|
SourisPosition();
|
|
|
|
if (_X>1250 && _X <1260+30 && _Y>15 && _Y < 15+30) {
|
|
|
|
mainMenu=0;
|
|
|
|
}
|
|
|
|
else if (_X>445 && _X<445+441 && _Y>230 && _Y<230+129) { /*Joueur choisit le mode facile, charger le mode facile*/
|
|
|
|
mainMenu=0;
|
|
|
|
ChargerDifficulte(1);
|
|
|
|
}
|
|
|
|
else if (_X>445 && _X<445+441 && _Y>400 && _Y<400+129) {
|
|
|
|
ChargerDifficulte(2);
|
|
|
|
}
|
2022-11-20 13:50:33 +01:00
|
|
|
}
|
|
|
|
}
|
2022-11-24 20:12:13 +01:00
|
|
|
FermerGraphique();
|
2022-11-20 13:50:33 +01:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|