summary refs log tree commit diff stats
path: root/src/consts.h
blob: 4e33922132b9feea9bb23e05ecdd933c4ee6b477 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CONSTS_H_8019F1B3
#define CONSTS_H_8019F1B3

#include "vector.h"
#include "rectangle.h"

constexpr vec2s TILE_SIZE { 32, 32 };
constexpr vec2s MAP_SIZE { 16, 16 };
constexpr vec2s LEVEL_SIZE = TILE_SIZE * MAP_SIZE;
constexpr vec2s BORDER_SIZE = TILE_SIZE;
constexpr vec2s WINDOW_SIZE = LEVEL_SIZE * vec2s { 2, 1 } + BORDER_SIZE * 2;

constexpr rect4s EDITOR_MAP_AREA { BORDER_SIZE, LEVEL_SIZE };
constexpr rect4s EDITOR_TILESET_AREA {
  { BORDER_SIZE.w() * 2 + LEVEL_SIZE.w(), BORDER_SIZE.h() },
  { TILE_SIZE.w(), LEVEL_SIZE.h() }
};

#endif /* end of include guard: CONSTS_H_8019F1B3 */