-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfonctions.h
32 lines (30 loc) · 854 Bytes
/
fonctions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include<stdio.h>
#include<SDL/SDL.h>
#include<SDL/SDL_image.h>
#include <SDL/SDL_mixer.h>
#include <stdlib.h>
typedef struct
{
SDL_Surface *enigme ;
SDL_Rect posenigme ;
char rep[20];
SDL_Surface *posv[15] ;
SDL_Surface *posmsg[15] ;
SDL_Surface * texteenigme ;
Mix_Music * sons ;
int temps ;
int niveau ;
int max;
char quiz ;
int etat;//(enigme resolu=1,enigme faux=-1)
}enigme;
int generatin_aleatoire(int nbalea,int lvl);
void jeu(SDL_Surface *screen);
int enigmequiz(int quiz, int curseur );
int lvl1 (SDL_Surface *screen);
void Indice(SDL_Surface *ecran,SDL_Surface *Indice,SDL_Rect posIndice);
int lvl2 (SDL_Surface *screen);
int lvl3 (SDL_Surface *screen);
int SDL_SetWindowFullscreen(SDL_Surface* screen , SDL_bool fullscreen);
void initialiser_enigme (enigme e[]);
void afficher_enigme (enigme e[],int lvl,int indice,SDL_Surface *screen);