actionrpg-heartbeast/ActionRPG-HeartBeast/Camera2D.gd
2024-12-31 16:25:23 -05:00

11 lines
262 B
GDScript

extends Camera2D
@onready var topLeft = $Limits/TopLeft
@onready var bottomRight = $Limits/BottomRight
func _ready():
limit_top = topLeft.position.y
limit_left = topLeft.position.x
limit_bottom = bottomRight.position.y
limit_right = bottomRight.position.x