init
This commit is contained in:
11
player/scripts/camera.gd
Normal file
11
player/scripts/camera.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
class_name Camera extends Camera2D
|
||||
|
||||
func _ready() -> void:
|
||||
LevelManager.Tilemap_boudns_change.connect(update_limits)
|
||||
|
||||
func update_limits(bounds: Array[Vector2]) -> void:
|
||||
limit_left = int(bounds[0].x)
|
||||
limit_top = int(bounds[0].y)
|
||||
limit_right = int(bounds[1].x)
|
||||
limit_bottom = int(bounds[1].y)
|
||||
|
||||
Reference in New Issue
Block a user