forked from Bniais/NineTeen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
83 lines (66 loc) · 2.7 KB
/
main.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// fonction principal
//verifier l'existance d'un fichier
// passer le repertoire complet en
// parametre de la fonction
int verify_file_existe(char name[]);
SDL_Texture *load_texture_png(SDL_Renderer* renderer, char directory[]);
int apply_renderer_texture(SDL_Renderer* renderer , SDL_Texture * texture);
void pauseClavier(Uint32 tempsMax);
// compile .o commande : gcc -c launcher.c `sdl2-config --cflags --libs` -lSDL2_image
#define NB_FILE 54
char verifierFichier[NB_FILE][128]={
"../room/sounds/borne1.wav",
"../room/sounds/borne2.wav",
"../room/sounds/borne3.wav",
"../room/sounds/walk.wav",
"../room/fonts/sega.ttf",
"../room/fonts/police.ttf",
"../room/textures/salle.obj",
"../room/textures/salle.mtl",
"../games/3_flappy_bird/Textures/birds.png",
"../games/3_flappy_bird/Textures/medals.png",
"../games/3_flappy_bird/Textures/pipes.png",
"../games/3_flappy_bird/Textures/scoreBoard.png",
"../games/3_flappy_bird/Textures/backgrounds.png",
"../games/3_flappy_bird/Textures/chiffre.png",
"../games/3_flappy_bird/Textures/sol.png",
"../games/3_flappy_bird/Textures/high_score.png",
"../games/3_flappy_bird/Sounds/flap.wav",
"../games/3_flappy_bird/Sounds/hurt.wav",
"../games/3_flappy_bird/Sounds/score.wav",
"../games/2_snake/Fonts/flappy.ttf",
"../games/2_snake/Fonts/zorque.ttf",
"../games/2_snake/Textures/anim.png",
"../games/2_snake/Textures/backgroundSnake.png",
"../games/2_snake/Textures/basket.png",
"../games/2_snake/Textures/chiffre.png",
"../games/2_snake/Textures/fruits.png",
"../games/2_snake/Textures/hud.png",
"../games/2_snake/Textures/snake.png",
"../games/5_tetris/Textures/bonus.png",
"../games/5_tetris/Textures/bricks.png",
"../games/5_tetris/Textures/chiffre.png",
"../games/5_tetris/Textures/fleche.png",
"../games/5_tetris/Textures/hud_grille.png",
"../games/5_tetris/Textures/laserAnim.png",
"../games/5_tetris/Textures/speedJauge.png",
"../games/5_tetris/Textures/turn.png",
"../games/7_asteroid/Textures/asteroid.png",
"../games/7_asteroid/Textures/background.png",
"../games/7_asteroid/Textures/bomb.png",
"../games/7_asteroid/Textures/bombIcon.png",
"../games/7_asteroid/Textures/bonus.png",
"../games/7_asteroid/Textures/bullet.png",
"../games/7_asteroid/Textures/explo.png",
"../games/7_asteroid/Textures/explo2.png",
"../games/7_asteroid/Textures/explo2.png",
"../games/7_asteroid/Textures/explo3.png",
"../games/7_asteroid/Textures/fissure.png",
"../games/7_asteroid/Textures/gem.png",
"../games/7_asteroid/Textures/glace.png",
"../games/7_asteroid/Textures/jauge.png",
"../games/7_asteroid/Textures/laser_beam.png",
"../games/7_asteroid/Textures/roue.png",
"../games/7_asteroid/Textures/thrust.png",
"../games/7_asteroid/Textures/vaisseau.png"
};