summary refs log tree commit diff stats
path: root/src/consts.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2019-03-10 12:07:40 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2019-03-10 12:07:40 -0400
commit57fe8f3c4124819b95164547333a33f4c45eac8d (patch)
tree99dd89a0c1cf0a8ceaa2ff941549d631950efd11 /src/consts.h
parentbf34f891c5c09e6c8a42797085860fa80ab53814 (diff)
downloaddispatcher-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.h6
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
6constexpr vec2s TILE_SIZE { 32, 32 }; 6constexpr vec2s TILE_SIZE { 32, 32 };
7constexpr vec2s LEVEL_SIZE { 16, 16 }; 7constexpr vec2s MAP_SIZE { 16, 16 };
8constexpr vec2s WINDOW_SIZE = TILE_SIZE * LEVEL_SIZE; 8constexpr vec2s LEVEL_SIZE = TILE_SIZE * MAP_SIZE;
9constexpr vec2s BORDER_SIZE = TILE_SIZE;
10constexpr 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 */