-
Notifications
You must be signed in to change notification settings - Fork 0
/
objectsGalaxian.h
186 lines (149 loc) · 2.31 KB
/
objectsGalaxian.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
//Variaveis de Objestos
typedef struct{
float MaiX;
float MaiY;
float MenX;
float MenY;
float base;
}Coord;
typedef struct{
/*Configurações Disparo*/
//Estado
bool rend;
//Movimento
float VelY;
//Tipo
int Disp;
int Dano;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Textura
int FrameAtual;
Coord tamFrame;
GLuint textura;
} Bullet;
typedef struct{
/*Configurações Player*/
//Estado
bool rend;
//Vidas
int Vidas;
//Quantidade de Disparos
int Disp;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Disparos
Bullet bul[500];
GLuint texturaBulletAtual;
//Textura
int FrameAtual;
Coord tamFrame;
} Player;
typedef struct{
/*Configurações Inimigo*/
//Estado
bool rend;
//Vidas
int Vidas;
//Quantidade de Disparos
int Disp;
int bulTime;
int auxbulTime;
//Movimento
float VelX;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Disparos
Bullet bul[500];
//Textura
int FrameAtual;
Coord tamFrame;
GLuint textura;
}Enemy;
typedef struct{
//Estado
bool rend;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Textura
int FrameAtual;
Coord tamFrame;
} Explosion;
typedef struct{
//Estado
bool rend;
//Tipo
int pup;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Textura
Coord tamFrame;
GLuint textura;
} Powerup;
typedef struct{
//Estado
bool rend;
//Vidas
int Vidas;
//Dimensões
float X;
float Y;
float Comp;
float Alt;
//Textura
int FrameAtual;
Coord tamFrame;
GLuint textura;
} Asteroid;
//Variaveis de texturas
GLuint startMenu;
GLuint pauseMenu;
GLuint controlsScreen;
GLuint gameOver;
GLuint creditosMenu;
Coord startCoord;
Coord pauseCoord;
Coord controlsCoord;
Coord gameOverCoord;
Coord backgroundCoord;
Coord creditosCoord;
Coord asteroidCoord;
Coord playerLifeCoord;
Coord contadorPontuacaoCoord[5];
GLuint background;
GLuint scene_asteroid;
GLuint explosion;
GLuint playerLife;
GLuint playerPowerup[4];
GLuint contadorPontuacao[5];
GLuint player;
GLuint playerBullet[3];
GLuint enemy[3];
GLuint enemyBullet;
GLuint tBoss[4];
SDL_Surface* principalDisplay;
SDL_Surface* icon;
//Variaveis de Musica
Mix_Chunk *opennigMus;
Mix_Chunk *gameNameMus;
Mix_Chunk *gameStartMus;
Mix_Chunk *gameOverMus;
Mix_Chunk *navigatingMus;
Mix_Chunk *explosionMus;
Mix_Chunk *bossMus;
Mix_Chunk *firingMus;