This commit is contained in:
Andriy Yednarovych
2026-02-22 19:26:26 +01:00
parent fd1ff19c4c
commit e877c5f058
211 changed files with 9385 additions and 0 deletions

11
player/scripts/camera.gd Normal file
View 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)