From 4a03d938451763dfb95b534f9002865e72ea7ec5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Mar 2019 17:45:16 -0400 Subject: Can click to place tiles in editor now --- src/consts.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/consts.h') 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 @@ #define CONSTS_H_8019F1B3 #include "vector.h" +#include "rectangle.h" constexpr vec2s TILE_SIZE { 32, 32 }; constexpr vec2s MAP_SIZE { 16, 16 }; @@ -9,4 +10,10 @@ 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 */ -- cgit 1.4.1