fix broken camera bounds

pull/6/head
John Montagu, the 4th Earl of Sandvich 2023-08-27 19:28:32 -07:00
parent c603b59850
commit e7c5c019cf
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
3 changed files with 7 additions and 3 deletions

View File

@ -5,10 +5,12 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b2lli"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_b2lli"]
size = Vector2(256, 272) size = Vector2(256, 272)
[node name="CameraBounds" type="Node2D" node_paths=PackedStringArray("Trigger")] [node name="CameraBounds" type="Node2D" node_paths=PackedStringArray("Trigger", "TopLeft", "BottomRight")]
position = Vector2(0, -89) position = Vector2(0, -89)
script = ExtResource("1_vaknk") script = ExtResource("1_vaknk")
Trigger = NodePath("Area2D") Trigger = NodePath("Area2D")
TopLeft = NodePath("TopLeft")
BottomRight = NodePath("BottomRight")
[node name="Area2D" type="Area2D" parent="."] [node name="Area2D" type="Area2D" parent="."]
collision_layer = 0 collision_layer = 0

View File

@ -178,7 +178,7 @@ ToConnector = "ArenaEntrance"
shape = SubResource("RectangleShape2D_2xagi") shape = SubResource("RectangleShape2D_2xagi")
[node name="EntranceCameraBounds" parent="Areas" index="1" node_paths=PackedStringArray("TopLeft", "BottomRight") instance=ExtResource("11_j2620")] [node name="EntranceCameraBounds" parent="Areas" index="1" node_paths=PackedStringArray("TopLeft", "BottomRight") instance=ExtResource("11_j2620")]
TopLeft = NodePath("") TopLeft = NodePath("TopLeft")
BottomRight = NodePath("BottomRight") BottomRight = NodePath("BottomRight")
[node name="Area2D" parent="Areas/EntranceCameraBounds" index="0"] [node name="Area2D" parent="Areas/EntranceCameraBounds" index="0"]

View File

@ -767,9 +767,11 @@ position = Vector2(-404, 505)
material = SubResource("ShaderMaterial_sq2yd") material = SubResource("ShaderMaterial_sq2yd")
position = Vector2(191, 567) position = Vector2(191, 567)
[node name="CameraBounds" parent="Areas" index="0" instance=ExtResource("33_e4gty")] [node name="CameraBounds" parent="Areas" index="0" node_paths=PackedStringArray("TopLeft", "BottomRight") instance=ExtResource("33_e4gty")]
visible = false visible = false
position = Vector2(576, 511) position = Vector2(576, 511)
TopLeft = NodePath("TopLeft")
BottomRight = NodePath("BottomRight")
[node name="TopLeft" parent="Areas/CameraBounds" index="1"] [node name="TopLeft" parent="Areas/CameraBounds" index="1"]
position = Vector2(-384, -192) position = Vector2(-384, -192)