forked from JDaniielC/IP-project-2020.2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
46 lines (34 loc) · 1.03 KB
/
config.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
#ifndef CCONFIG_H
#define CONFIG_H
typedef struct Player {
Vector2 posicao;
float velocidade;
bool pular;
float largura;
float altura;
} Player;
typedef struct Plataforma {
Rectangle rect;
int mata;
int trampolim;
} Plataforma;
typedef struct {
Rectangle act;
Rectangle react;
int bloqueado;
int star;
int portal;
} Feature;
#define Gravidade 350
#define deslizar 50
#define constVertical 200.0f
#define constHorizontal 200.0f
void mostrarTextura(Texture2D *nivel, Plataforma *plat, Feature *recursos);
void mostrarTextura1(Texture2D *nivel1, Plataforma *plat, Feature *recursos);
void mostrarTextura2(Texture2D *nivel2, Plataforma *plat, Feature *recursos);
void movJogador(Player *player, Plataforma *plataformas, int tamPlataforma, float delta, Vector2 inicial);
Texture2D *carregarTextura();
void descarregarTexturas();
void niveis(int fase, Plataforma *plat, Feature *recursos);
void features(Player *player, Feature *recursos, int tam, float delta, int *fase, Vector2 posicao);
#endif