-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.h
More file actions
107 lines (101 loc) · 2.11 KB
/
Copy pathstruct.h
File metadata and controls
107 lines (101 loc) · 2.11 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
** EPITECH PROJECT, 2019
** struct_h
** File description:
** struct_h
*/
#include <SFML/Audio.h>
#include <SFML/Graphics.h>
#include <SFML/Graphics/Types.h>
#include <stdlib.h>
#include <SFML/Window/Types.h>
#include <SFML/Window/Export.h>
#include <sys/types.h>
#include <sys/stat.h>
void my_putchar(char c);
int my_putstr(char const *str);
int my_put_nbr(int nb);
char *nb_tochar(int i);
int game(sfRenderWindow* window, int fd);
int game_over(sfRenderWindow* window, float scoore);
int win(sfRenderWindow* window, float scoore);
struct main_menu
{
sfRenderWindow* window;
sfTime time;
sfEvent event;
sfFont* font;
sfTexture* texturebg;
sfTexture* texturebgback;
sfTexture* texturebgmiddle;
sfTexture* bgfront;
sfTexture* dino1;
sfTexture* dino2;
sfTexture* dino3;
sfTexture* dino4;
sfSprite* dino;
sfSprite* background;
sfText* title;
sfText* footer;
sfMusic* music;
};
struct my_game
{
sfRenderWindow* window;
sfText* score;
sfTexture* texturebg;
sfTexture* dino1;
sfTexture* dino2;
sfTexture* dino3;
sfTexture* dino4;
sfTexture* textureobs;
sfTexture* textureground;
sfTexture* texturebg2;
sfTexture* texturebg3;
sfTexture* texturehills;
sfTexture* textureclouds;
sfSprite* obs;
sfSprite* dino;
sfSprite* bg;
sfSprite* bg2;
sfSprite* bg3;
sfSprite* hills;
sfSprite* ground;
sfSprite* clouds;
sfFont* font;
sfEvent event;
sfIntRect bgrect;
sfMusic* hit;
sfMusic* press;
sfMusic* reached;
};
struct lose
{
sfRenderWindow* window;
sfTime time;
sfEvent event;
sfFont* font;
sfTexture* texturebg;
sfTexture* texturebgback;
sfTexture* texturebgmiddle;
sfTexture* bgfront;
sfSprite* background;
sfText* title;
sfText* score;
sfText* text;
};
struct win
{
sfRenderWindow* window;
sfTime time;
sfEvent event;
sfFont* font;
sfTexture* texturebg;
sfTexture* texturebgback;
sfTexture* texturebgmiddle;
sfTexture* bgfront;
sfSprite* background;
sfText* title;
sfText* score;
sfText* text;
};