actionrpg-heartbeast/ActionRPG-HeartBeast/Camera2D.gd
2024-12-05 18:37:10 -05:00

11 lines
260 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