From 69e4d0d6fc9938471f4365e6e39a653a5599e9fd Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Wed, 20 Apr 2022 11:48:57 -0400 Subject: [PATCH] remove temporary gdscript camera limit --- godot/camera_fix.gd | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 godot/camera_fix.gd diff --git a/godot/camera_fix.gd b/godot/camera_fix.gd deleted file mode 100644 index 31ad05f..0000000 --- a/godot/camera_fix.gd +++ /dev/null @@ -1,10 +0,0 @@ -extends Node2D - - -# Called when the node enters the scene tree for the first time. -func _ready() -> void: - var used_rect = get_node("Middleground").get_used_rect() - var bounds = Vector2(used_rect.position.x + used_rect.size.x, used_rect.position.y + used_rect.size.y - 1) - var camera : Camera2D = $"../../Player/Camera2D" - camera.limit_right = bounds.x * get_node("Middleground").cell_size.x - camera.limit_bottom = bounds.y * get_node("Middleground").cell_size.y