summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editor.c3
-rw-r--r--src/map.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/editor.c b/src/editor.c
index f65d966..4c005f8 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -33,6 +33,7 @@ static void update_tile_editor(platform_window* window) {
if (pos.x < 0 || pos.y < 0) return;
if (pos.x >= loaded_map.width || pos.y >= loaded_map.height) return;
+ if (_global_mouse.x < editor_width) return;
switch (tile_edit_state)
{
@@ -90,7 +91,7 @@ void update_editor(platform_window* window)
if (!is_editing_map) return;
- float cam_speed = 500;
+ float cam_speed = 1000;
if (keyboard_is_key_down(KEY_W)) {
camera_y -= update_delta*cam_speed;
}
diff --git a/src/map.c b/src/map.c
index fb8b5bc..087d03c 100644
--- a/src/map.c
+++ b/src/map.c
@@ -364,8 +364,10 @@ inline int get_tile_width(platform_window* window) {
//int tile_width = window->height / player_zoom;
//if (window->width > window->height) tile_width = window->width / player_zoom;
//return round_up(tile_width, 8);
-
- return 32;
+ #ifdef MODE_DEBUG
+ if (is_editing_map) return 32;
+ #endif
+ return 256/5.0f+1;
}
inline int get_tile_height(platform_window* window) {