From 57fe8f3c4124819b95164547333a33f4c45eac8d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 10 Mar 2019 12:07:40 -0400 Subject: Editor now allows tile placement You can scroll through the three layers (map, track, object) with Z/X. You can swap between focusing on the map and the tileset with TAB. You can place tiles with enter or space. Pretty rudimentary, but it's a start. --- src/consts.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/consts.h') diff --git a/src/consts.h b/src/consts.h index f3a073c..a6b5094 100644 --- a/src/consts.h +++ b/src/consts.h @@ -4,7 +4,9 @@ #include "vector.h" constexpr vec2s TILE_SIZE { 32, 32 }; -constexpr vec2s LEVEL_SIZE { 16, 16 }; -constexpr vec2s WINDOW_SIZE = TILE_SIZE * LEVEL_SIZE; +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; #endif /* end of include guard: CONSTS_H_8019F1B3 */ -- cgit 1.4.1