update tiled importer and fix camera bounds to work with it

This commit is contained in:
2022-07-06 18:03:25 -04:00
parent 4a64951f28
commit 26cb0fb86f
7 changed files with 47 additions and 30 deletions

View File

@@ -32,7 +32,7 @@ void CameraLimit::_ready()
if (middle_ground != NULL)
{
auto used_rect = middle_ground->get_used_rect();
auto bounds = Vector2(used_rect.position.x + used_rect.size.x, used_rect.position.y + used_rect.size.y - 1);
auto bounds = Vector2(used_rect.position.x + used_rect.size.x, used_rect.position.y + used_rect.size.y);
node = get_tree()->get_root()->find_node("Camera2D", true, false);
auto camera = cast_to<Camera2D>(node);
if (camera != NULL)