diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-10 12:07:40 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-10 12:07:40 -0400 |
commit | 57fe8f3c4124819b95164547333a33f4c45eac8d (patch) | |
tree | 99dd89a0c1cf0a8ceaa2ff941549d631950efd11 /src/consts.h | |
parent | bf34f891c5c09e6c8a42797085860fa80ab53814 (diff) | |
download | dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.tar.gz dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.tar.bz2 dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.zip |
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.
Diffstat (limited to 'src/consts.h')
-rw-r--r-- | src/consts.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
4 | #include "vector.h" | 4 | #include "vector.h" |
5 | 5 | ||
6 | constexpr vec2s TILE_SIZE { 32, 32 }; | 6 | constexpr vec2s TILE_SIZE { 32, 32 }; |
7 | constexpr vec2s LEVEL_SIZE { 16, 16 }; | 7 | constexpr vec2s MAP_SIZE { 16, 16 }; |
8 | constexpr vec2s WINDOW_SIZE = TILE_SIZE * LEVEL_SIZE; | 8 | constexpr vec2s LEVEL_SIZE = TILE_SIZE * MAP_SIZE; |
9 | constexpr vec2s BORDER_SIZE = TILE_SIZE; | ||
10 | constexpr vec2s WINDOW_SIZE = LEVEL_SIZE * vec2s { 2, 1 } + BORDER_SIZE * 2; | ||
9 | 11 | ||
10 | #endif /* end of include guard: CONSTS_H_8019F1B3 */ | 12 | #endif /* end of include guard: CONSTS_H_8019F1B3 */ |