Reworked Camera controls outside scene

This commit is contained in:
2025-07-06 21:56:15 +02:00
parent ab2cf3f497
commit 9c7ae20c18
3 changed files with 18 additions and 11 deletions
+15 -1
View File
@@ -1,8 +1,9 @@
[gd_scene load_steps=84 format=3 uid="uid://gigb28qk8t12"]
[gd_scene load_steps=85 format=3 uid="uid://gigb28qk8t12"]
[ext_resource type="PackedScene" uid="uid://c25udixd5m6l0" path="res://prefabs/characters/Player2D.tscn" id="1_7wfwe"]
[ext_resource type="Texture2D" uid="uid://8sr11ex30n0m" path="res://art/mockups/Kenney_Backgrounds/Samples/uncolored_hills.png" id="2_7b2ri"]
[ext_resource type="PackedScene" uid="uid://bm21nqepnwaik" path="res://scenes/IndoorTest2.tscn" id="2_taxvr"]
[ext_resource type="Script" uid="uid://bqomwxclsbhd3" path="res://scripts/CSharp/Common/Camera/CameraController.cs" id="3_p4qqi"]
[ext_resource type="Texture2D" uid="uid://be1nofeo7an0" path="res://art/mockups/Kenney_Backgrounds/PNG/cloud2.png" id="3_r34wi"]
[ext_resource type="Texture2D" uid="uid://o6vnf7n7qp8o" path="res://art/mockups/Kenney_Backgrounds/PNG/cloud6.png" id="4_xh22q"]
[ext_resource type="Texture2D" uid="uid://cc0o84q5u437k" path="res://art/mockups/Kenney_Backgrounds/PNG/cloud7.png" id="5_k3wpj"]
@@ -206,6 +207,19 @@ stream_2/stream = ExtResource("49_d77e7")
script = ExtResource("34_e5b7x")
_sceneToLoad = ExtResource("2_taxvr")
[node name="Camera2D" type="Camera2D" parent="." node_paths=PackedStringArray("_followNode")]
position = Vector2(3180, 1961)
scale = Vector2(1, 0.993819)
offset = Vector2(0, -500)
zoom = Vector2(0.25, 0.25)
limit_left = -6000
limit_top = -800
limit_right = 16000
limit_bottom = 4700
editor_draw_limits = true
script = ExtResource("3_p4qqi")
_followNode = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="background color layer" type="ParallaxLayer" parent="ParallaxBackground"]