summary refs log tree commit diff stats
path: root/src/consts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/consts.h')
-rw-r--r--src/consts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/consts.h b/src/consts.h index a6b5094..4e33922 100644 --- a/src/consts.h +++ b/src/consts.h
@@ -2,6 +2,7 @@
2#define CONSTS_H_8019F1B3 2#define CONSTS_H_8019F1B3
3 3
4#include "vector.h" 4#include "vector.h"
5#include "rectangle.h"
5 6
6constexpr vec2s TILE_SIZE { 32, 32 }; 7constexpr vec2s TILE_SIZE { 32, 32 };
7constexpr vec2s MAP_SIZE { 16, 16 }; 8constexpr vec2s MAP_SIZE { 16, 16 };
@@ -9,4 +10,10 @@ constexpr vec2s LEVEL_SIZE = TILE_SIZE * MAP_SIZE;
9constexpr vec2s BORDER_SIZE = TILE_SIZE; 10constexpr vec2s BORDER_SIZE = TILE_SIZE;
10constexpr vec2s WINDOW_SIZE = LEVEL_SIZE * vec2s { 2, 1 } + BORDER_SIZE * 2; 11constexpr vec2s WINDOW_SIZE = LEVEL_SIZE * vec2s { 2, 1 } + BORDER_SIZE * 2;
11 12
13constexpr rect4s EDITOR_MAP_AREA { BORDER_SIZE, LEVEL_SIZE };
14constexpr rect4s EDITOR_TILESET_AREA {
15 { BORDER_SIZE.w() * 2 + LEVEL_SIZE.w(), BORDER_SIZE.h() },
16 { TILE_SIZE.w(), LEVEL_SIZE.h() }
17};
18
12#endif /* end of include guard: CONSTS_H_8019F1B3 */ 19#endif /* end of include guard: CONSTS_H_8019F1B3 */