11 lines
262 B
GDScript
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
|