-
Notifications
You must be signed in to change notification settings - Fork 1
/
Globals.h
62 lines (53 loc) · 1.03 KB
/
Globals.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
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
#define LOG(format, ...) log(__FILE__, __LINE__, format, __VA_ARGS__);
void log(const char file[], int line, const char* format, ...);
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define MIN( a, b ) ( ((a) < (b)) ? (a) : (b) )
#define MAX( a, b ) ( ((a) > (b)) ? (a) : (b) )
#define PI 3.14159265358979323846
enum update_status
{
UPDATE_CONTINUE = 1,
UPDATE_STOP,
UPDATE_ERROR
};
enum ENEMY_TYPES
{
NO_TYPE,
POWERUPSHIP,
BROWN_WORM,
LITTLE_SHRIMP,
NEMONA_TENTACLE,
BIG_EYE,
BIG_SHRIMP,
BLUE_MOUTH,
YELLOW_BALL,
BOUNCER,
BLUE_SENTINEL,
ROCK,
WORM_BODY,
WORM_HEAD,
WORM_BASE,
BLUE_BALL,
BLUE_BALL2,
BOSS1,
BOSSARM,
BOSSTENT,
BOSSDISP,
BOSSFACE,
BOSSHEART,
};
// Useful typedefs ---------
typedef unsigned int uint;
// Configuration -----------
#define SCREEN_SIZE 1
#define SCREEN_WIDTH 384 //384
#define SCREEN_HEIGHT 256 //256
#define WIN_FULLSCREEN 0
#define WIN_FULLSCREEN_DESKTOP 1
#define WIN_BORDERLESS 0
#define WIN_RESIZABLE 1
#define REN_VSYNC 1
#endif // __GLOBALS_H__