]> git.lizzy.rs Git - nothing.git/blob - src/config.h
Try to remove malloc from LevelEditor
[nothing.git] / src / config.h
1 #ifndef CONFIG_H_
2 #define CONFIG_H_
3
4 // TODO(#1085): PLAYER_DEATH_LEVEL is hardcoded
5 //   Should be customizable in the Level Editor
6 #define PLAYER_DEATH_LEVEL 1000.0f
7
8 #define SOUND_SAMPLES_DEFAULT_VOLUME 80.0f
9
10 #define LEVEL_EDITOR_DETH_LEVEL_COLOR hsla(0.0f, 0.8f, 0.6f, 1.0f)
11
12 #define BACKGROUND_LAYERS_COUNT 3
13 #define BACKGROUND_LAYERS_STEP 0.2f
14 #define BACKGROUND_TURDS_PER_CHUNK 5
15 #define BACKGROUND_CHUNK_WIDTH 500.0f
16 #define BACKGROUND_CHUNK_HEIGHT 500.0f
17
18 #define ENTITY_MAX_ID_SIZE 36
19
20 #define SNAPPING_THRESHOLD 10.0f
21
22 #define CAMERA_RATIO_X 16.0f
23 #define CAMERA_RATIO_Y 9.0f
24
25 #define METADATA_TITLE_MAX_SIZE 256
26 #define METADATA_VERSION_MAX_SIZE 256
27 #define METADATA_FILEPATH_MAX_SIZE 512
28
29 #define VERSION "2"
30
31 // #define RENDERER_CONFIG SDL_RENDERER_SOFTWARE
32 #define RENDERER_CONFIG (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC)
33
34 #define UNDO_HISTORY_CAPACITY 256
35
36 #define EDIT_FIELD_CAPACITY 256
37
38 #define TMPMEM_CAPACITY (640 * KILO)
39
40 #define LEVEL_EDITOR_MEMORY_CAPACITY (640 * KILO)
41
42 #endif  // CONFIG_H_