-
Notifications
You must be signed in to change notification settings - Fork 0
/
struct.h
66 lines (59 loc) · 1.09 KB
/
struct.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
/*
** EPITECH PROJECT, 2018
** my_struct.c
** File description:
** oui
*/
#include "my.h"
#ifndef STRUCT_H_
#define STRUCT_H_
typedef struct the_stcz {
sfClock *clock;
sfTime time;
int vies;
int mort;
float seconds;
int compteur;
sfTexture *texture;
sfSprite *sprite;
sfVector2f position;
sfIntRect hit;
} stc_zombie;
typedef struct the_coeur {
int coeurs;
int compt;
sfIntRect rect;
sfText *textbase;
sfTexture *text;
sfSprite *sprite;
sfVector2f position;
sfMusic* fusilsound;
sfMusic* music;
} stc_vie;
typedef struct the_menu {
sfText *txt;
char *score;
sfTexture *text;
sfTexture *text2;
sfTexture *text3;
sfSprite *spr_b1;
sfSprite *spr_logo;
sfVector2f position;
sfVector2f pos_text;
sfVector2f pos_logo;
} stc_menu;
typedef struct the_game {
stc_zombie *z;
sfRenderWindow *k;
stc_vie j;
stc_menu m;
sfTexture *scoretext;
sfSprite *sprite;
sfEvent event;
sfSprite *curseur;
int boucle;
int i;
int tzombie;
int jeu;
} the_game;
#endif