remove temporary gdscript camera limit

This commit is contained in:
Chris Cromer 2022-04-20 11:48:57 -04:00
parent 8edcae5adc
commit 69e4d0d6fc
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -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