#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 */