1 #ifndef _config_h_
2 #define _config_h_
3 
4 // app parameters
5 #define DEBUG 0
6 #define FULLSCREEN 0
7 #define WINDOW_WIDTH 1024
8 #define WINDOW_HEIGHT 768
9 #define VSYNC 1
10 #define SCROLL_THRESHOLD 0.1
11 #define MAX_MESSAGES 4
12 #define DB_PATH "craft.db"
13 #define USE_CACHE 1
14 #define DAY_LENGTH 600
15 #define INVERT_MOUSE 0
16 
17 // rendering options
18 #define SHOW_LIGHTS 1
19 #define SHOW_PLANTS 1
20 #define SHOW_CLOUDS 1
21 #define SHOW_TREES 1
22 #define SHOW_ITEM 1
23 #define SHOW_CROSSHAIRS 1
24 #define SHOW_WIREFRAME 1
25 #define SHOW_INFO_TEXT 1
26 #define SHOW_CHAT_TEXT 1
27 #define SHOW_PLAYER_NAMES 1
28 
29 // key bindings
30 #define CRAFT_KEY_FORWARD 'W'
31 #define CRAFT_KEY_BACKWARD 'S'
32 #define CRAFT_KEY_LEFT 'A'
33 #define CRAFT_KEY_RIGHT 'D'
34 #define CRAFT_KEY_JUMP GLFW_KEY_SPACE
35 #define CRAFT_KEY_FLY GLFW_KEY_TAB
36 #define CRAFT_KEY_OBSERVE 'O'
37 #define CRAFT_KEY_OBSERVE_INSET 'P'
38 #define CRAFT_KEY_ITEM_NEXT 'E'
39 #define CRAFT_KEY_ITEM_PREV 'R'
40 #define CRAFT_KEY_ZOOM GLFW_KEY_LEFT_SHIFT
41 #define CRAFT_KEY_ORTHO 'F'
42 #define CRAFT_KEY_CHAT 't'
43 #define CRAFT_KEY_COMMAND '/'
44 #define CRAFT_KEY_SIGN '`'
45 
46 // advanced parameters
47 #define CREATE_CHUNK_RADIUS 10
48 #define RENDER_CHUNK_RADIUS 10
49 #define RENDER_SIGN_RADIUS 4
50 #define DELETE_CHUNK_RADIUS 14
51 #define CHUNK_SIZE 32
52 #define COMMIT_INTERVAL 5
53 
54 #endif
55