-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
93 lines (75 loc) · 2.48 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
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
#ifndef CONFIG_H
#define CONFIG_H
// PROG_NAME comes from makefile
#define GAME_NAME "Hook Wars"
#define PLAYER_MODEL "assets/player.obj"
#define PLAYER_TEXTURE "assets/playertexture_diffuse.png"
#define PLAYER_TEXTURE_NORMAL "assets/playertexture_normal.png"
#define PLAYER_TEXTURE_SSAO "assets/playertexture_ao.png"
#define ROTOR_MODEL "assets/rotor.obj"
#define PLAYER_SCALING 0.7f
#define PLAYER_BASE_ROTATION (glm::pi<float>())
#define PLAYER_RADIUS 0.7f
#define HEALTHBAR_MODEL "assets/health.obj"
#define HEALTHBAR_SCALING 0.1f
#define HEALTHBAR_LENGTH 3.0f
#define HEALTHBAR_HEIGHT 4.0f
#define HOOK_MODEL "assets/hook.obj"
#define HOOK_GRAPPLE_MODEL "assets/grapple.obj"
#define HOOK_SCALING 0.4f
#define HOOK_SPEED 0.5f
#define HOOK_RADIUS 0.4f
#define HOOK_BASE_ROTATION glm::half_pi<float>()
#define CHAIN_MODEL "assets/chain_simple.obj"
#define CHAIN_SCALING 0.15f
#define CHAIN_DISTANCE 0.65f
#define CHAIN_BASE_ROTATION glm::pi<float>()
#define CHAIN_BASE_PUSH 0.2f
#define CHAIN_PULL 0.5f
#define CHAIN_BASE_PULL 0.2f
#define MINE_MODEL "assets/mine.obj"
#define MINE_TEXTURE "assets/mtl_o_s.png"
#define MINE_TEXTURE_NORMAL "assets/mtl_o_n.png"
#define MINE_SCALING 0.5f
#define MINE_BASE_ROTATION glm::half_pi<float>()
#define MINE_RADIUS 0.7f
#define MINE_RANGE 1.5f
#define MINE_RESPAWN_TIME 2.0f
#define MINE_COUNT 2
//#define loadCube
#define MAP_MODEL "assets/map1.obj"
#define MAP_SCALING 4.0f
#define MAP_DIFFUSE "assets/T_Tile_Sandstone_02_4096_D.png"
#define MAP_NORMAL "assets/T_Tile_Sandstone_02_4096_N.png"
#define MAP_AO "assets/T_Tile_Sandstone_02_4096_AO.png"
#define NAVIGATION_MAP "assets/Navigation.png"
#define WINDOW_NAME GAME_NAME
#define WINDOW_WIDTH 1024
#define WINDOW_HEIGHT 768
#define LINK_DISTANCE (0.1f)
#define HOOK_COOLDOWN (1.500f) //seconds
#define GRAPPLE_COOLDOWN (10.000f) //seconds
#define HOOK_LIFETIME (6.000f) //seconds
#define HOOK_RETRACT_TIME (0.300f) //seconds
#define GAMEPAD_CUTOFF (0.15f)
#define PLAYER_MAXSPEED (0.20f)
#define BLINK_TIME 1.0f
#define BLINK_INTERVAL 0.2f
// Shading
#define GEOMETRIE_VERTEX "shader/geometrie.vs"
#define GEOMETRIE_FRAGMENT "shader/geometrie.fs"
#define HEALTHBAR_VERTEX "shader/health.vs"
#define HEALTHBAR_FRAGMENT "shader/health.fs"
#define SHADOW_VERTEX "shader/shadow.vs"
#define SHADOW_FRAGMENT "shader/shadow.fs"
namespace XBOX_ONE_GAMEPAD {
enum {
TURN_LEFT_RIGHT = 3,
TURN_UP_DOWN = 4,
MOVE_LEFT_RIGHT = 0,
MOVE_UP_DOWN = 1,
FIRE = 5,
GRAPPLE = 2,
};
}
#endif