forked from CircusGames/Last_Resort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobals.h
51 lines (41 loc) · 980 Bytes
/
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
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
#include "SDL\include\SDL_rect.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) )
enum update_status
{
UPDATE_CONTINUE = 1,
UPDATE_STOP,
UPDATE_ERROR
};
enum powerUpTypes
{
NONE,
BOOST,
BRAKE,
MISSILES,
LASER,
BOMBS
};
enum playerNum
{
PLAYER1,
PLAYER2,
};
// Useful typedefs ---------
typedef unsigned int uint;
// Configuration -----------
#define SCREEN_SIZE 3
#define SCREEN_WIDTH 304
#define SCREEN_HEIGHT 224
#define WIN_FULLSCREEN 0 //full screen mode wich resizes screen to fit to resolution of the desktop
#define WIN_FULLSCREEN_DESKTOP 1 //fullscreen mode wich preserves screen ratio
#define WIN_BORDERLESS 0
#define WIN_RESIZABLE 0
#define REN_VSYNC 1
#endif // __GLOBALS_H__