[gd_scene load_steps=20 format=4 uid="uid://bvpp5na5054jd"]

[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_h1rbo"]
[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_1f2t2"]
[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_o6nri"]
[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_j7670"]
[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_gvv7r"]
[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_rwobr"]
[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_ylx0h"]
[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_ytsgf"]
[ext_resource type="Script" uid="uid://t8wa4e5y5hcf" path="res://addons/phantom_camera/examples/scripts/2D/2d_trigger_area.gd" id="9_3r1pw"]
[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_5jy5e"]
[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="10_guf2v"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_cvmao"]
texture = ExtResource("1_h1rbo")
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
3:0/0 = 0
4:0/0 = 0
5:0/0 = 0
6:0/0 = 0
7:0/0 = 0
7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
3:1/0 = 0
4:1/0 = 0
5:1/0 = 0
7:1/0 = 0
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:2/0 = 0
3:2/0 = 0
4:2/0 = 0
7:2/0 = 0
7:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:3/0 = 0
4:3/0 = 0
5:3/0 = 0
7:3/0 = 0
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:4/0 = 0
4:4/0 = 0
5:4/0 = 0
7:4/0 = 0
3:5/0 = 0
4:5/0 = 0
7:5/0 = 0
3:6/0 = 0
4:6/0 = 0
7:6/0 = 0
2:7/0 = 0
3:7/0 = 0
4:7/0 = 0
5:7/0 = 0
8:0/0 = 0
8:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:0/0 = 0
9:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:0/0 = 0
10:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
11:0/0 = 0
11:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
12:0/0 = 0
12:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:0/0 = 0
13:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
14:0/0 = 0
14:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(8, -8, 8, 8, -8, 8)
14:0/0/custom_data_0 = &"Sign"
15:0/0 = 0
16:0/0 = 0
8:1/0 = 0
8:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:1/0 = 0
9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:1/0 = 0
10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
11:1/0 = 0
11:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
12:1/0 = 0
12:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:1/0 = 0
13:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
14:1/0 = 0
15:1/0 = 0
16:1/0 = 0
8:2/0 = 0
8:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:2/0 = 0
9:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:2/0 = 0
10:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
11:2/0 = 0
11:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
12:2/0 = 0
12:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:2/0 = 0
13:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
14:2/0 = 0
15:2/0 = 0
16:2/0 = 0
8:3/0 = 0
8:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
9:3/0 = 0
9:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
10:3/0 = 0
10:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
11:3/0 = 0
12:3/0 = 0
12:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:3/0 = 0
13:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
14:3/0 = 0
15:3/0 = 0
16:3/0 = 0
8:4/0 = 0
9:4/0 = 0
10:4/0 = 0
11:4/0 = 0
11:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-7, 2.5, -5, -2, -2.5, -5, 2, -7, 8, -8, 8, 8, -8, 8)
12:4/0 = 0
12:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:4/0 = 0
13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 0, -6, 4, -1.5, 6.5, 1.5, 8, 8, -8, 8)
14:4/0 = 0
14:4/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, -8, 8, 8, 8, 8, -8)
14:4/0/custom_data_0 = &"Inventory"
15:4/0 = 0
16:4/0 = 0
8:5/0 = 0
9:5/0 = 0
10:5/0 = 0
11:5/0 = 0
11:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
12:5/0 = 0
12:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:5/0 = 0
13:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
14:5/0 = 0
15:5/0 = 0
16:5/0 = 0
8:6/0 = 0
9:6/0 = 0
10:6/0 = 0
11:6/0 = 0
11:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, 1, 6.5, -3, 3, -6.5, -1.5)
12:6/0 = 0
12:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
13:6/0 = 0
13:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 6, -0.5, 3, 3.5, -1.5, 6.5, -8, 8)
14:6/0 = 0
15:6/0 = 0
16:6/0 = 0

[sub_resource type="TileSet" id="TileSet_na7gm"]
physics_layer_0/collision_layer = 1
physics_layer_1/collision_layer = 2
physics_layer_1/collision_mask = 2
custom_data_layer_0/name = "Type"
custom_data_layer_0/type = 21
sources/0 = SubResource("TileSetAtlasSource_cvmao")

[sub_resource type="RectangleShape2D" id="RectangleShape2D_tgk1y"]
size = Vector2(140, 160)

[sub_resource type="Resource" id="Resource_mtp70"]
script = ExtResource("10_guf2v")
duration = 0.6
transition = 1
ease = 2

[sub_resource type="RectangleShape2D" id="RectangleShape2D_clm0y"]
size = Vector2(104, 160)

[sub_resource type="Resource" id="Resource_8jg5c"]
script = ExtResource("10_guf2v")
duration = 0.3
transition = 8
ease = 2

[sub_resource type="RectangleShape2D" id="RectangleShape2D_uka0w"]
size = Vector2(560, 160)

[sub_resource type="Resource" id="Resource_e4e41"]
script = ExtResource("10_guf2v")
duration = 1.2
transition = 10
ease = 2

[node name="Root" type="Node2D"]

[node name="Background" type="CanvasLayer" parent="."]
layer = -3

[node name="ColorRect" type="ColorRect" parent="Background"]
auto_translate_mode = 2
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -311.0
offset_top = -173.0
offset_right = 981.0
offset_bottom = 548.0
grow_horizontal = 2
grow_vertical = 2
localize_numeral_system = false
color = Color(0.137255, 0.14902, 0.196078, 1)

[node name="Pillar" type="TileMapLayer" parent="."]
use_parent_material = true
scale = Vector2(3, 3)
tile_map_data = PackedByteArray("AAAAAPr/AAAKAAIAAAAAAPv/AAAKAAMAAAAAAPz/AAAKAAMAAAAAAP3/AAAKAAMAAAAAAP7/AAAKAAMAAAAAAP//AAAKAAMAAAABAPr/AAALAAIAAAABAPv/AAALAAEAAAABAPz/AAALAAEAAAABAP3/AAALAAEAAAABAP7/AAALAAEAAAABAP//AAALAAEAAAACAPr/AAAMAAIAAAACAPv/AAAMAAMAAAACAPz/AAAMAAMAAAACAP3/AAAMAAMAAAACAP7/AAAMAAMAAAACAP//AAAMAAMAAAA=")
tile_set = SubResource("TileSet_na7gm")
collision_enabled = false
navigation_enabled = false

[node name="Terrain" type="TileMapLayer" parent="."]
use_parent_material = true
scale = Vector2(3, 3)
tile_map_data = PackedByteArray("[encoded data, 8468 characters]")
tile_set = SubResource("TileSet_na7gm")

[node name="UI" type="CanvasLayer" parent="."]

[node name="UIInventory" parent="UI" instance=ExtResource("2_1f2t2")]
unique_name_in_owner = true
visible = false

[node name="UISign" parent="UI" instance=ExtResource("3_o6nri")]
unique_name_in_owner = true
visible = false

[node name="Camera2D" type="Camera2D" parent="."]
physics_interpolation_mode = 1
position = Vector2(227, -28)
process_callback = 0
position_smoothing_speed = 10.0
editor_draw_limits = true

[node name="PhantomCameraHost" type="Node" parent="Camera2D"]
process_priority = 300
process_physics_priority = 300
script = ExtResource("4_j7670")

[node name="Player" type="Node" parent="."]

[node name="PlayerPhantomCamera2D" type="Node2D" parent="Player" node_paths=PackedStringArray("follow_target")]
unique_name_in_owner = true
top_level = true
position = Vector2(227, -28)
script = ExtResource("5_gvv7r")
priority = 5
follow_mode = 2
follow_target = NodePath("../CharacterBody2D")
tween_resource = ExtResource("6_rwobr")
tween_on_load = false
follow_damping = true
draw_limits = true

[node name="Label" type="Label" parent="Player"]
offset_left = 167.0
offset_top = -132.0
offset_right = 332.0
offset_bottom = -68.0
theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1)
theme_override_fonts/font = ExtResource("7_ylx0h")
text = "[WASD] to move
[Space] to jump"

[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_ytsgf")]
position = Vector2(227, -28)
script = ExtResource("9_5jy5e")

[node name="WideArea" type="Area2D" parent="." node_paths=PackedStringArray("area_pcam")]
position = Vector2(393, -40)
collision_layer = 2
collision_mask = 2
script = ExtResource("9_3r1pw")
area_pcam = NodePath("PhantomCamera2D")

[node name="CollisionShape2D" type="CollisionShape2D" parent="WideArea"]
position = Vector2(0, -40)
shape = SubResource("RectangleShape2D_tgk1y")

[node name="ColorRect" type="ColorRect" parent="WideArea"]
offset_left = -70.0
offset_top = -120.0
offset_right = 70.0
offset_bottom = 40.0
size_flags_horizontal = 0
size_flags_vertical = 0
color = Color(0.556863, 0.447059, 0.545098, 0.698039)

[node name="Label" type="Label" parent="WideArea"]
offset_left = -77.0
offset_top = -250.0
offset_right = 76.0
offset_bottom = -120.0
theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1)
theme_override_fonts/font = ExtResource("7_ylx0h")
text = "Transition Type:
Sine

Duration:
0.6s"
horizontal_alignment = 1

[node name="PhantomCamera2D" type="Node2D" parent="WideArea"]
position = Vector2(4, -100)
script = ExtResource("5_gvv7r")
zoom = Vector2(0.8, 0.8)
tween_resource = SubResource("Resource_mtp70")
draw_limits = true

[node name="UpperZoomArea" type="Area2D" parent="." node_paths=PackedStringArray("area_pcam")]
position = Vector2(649, -135)
collision_layer = 2
collision_mask = 2
script = ExtResource("9_3r1pw")
area_pcam = NodePath("PhantomCamera2D")

[node name="CollisionShape2D" type="CollisionShape2D" parent="UpperZoomArea"]
position = Vector2(0, -40)
shape = SubResource("RectangleShape2D_clm0y")

[node name="CollisionShape2D2" type="CollisionShape2D" parent="UpperZoomArea"]
position = Vector2(0, -40)
shape = SubResource("RectangleShape2D_clm0y")

[node name="ColorRect" type="ColorRect" parent="UpperZoomArea"]
offset_left = -52.0
offset_top = -120.0
offset_right = 52.0
offset_bottom = 40.0
size_flags_horizontal = 0
size_flags_vertical = 0
color = Color(0.556863, 0.447059, 0.545098, 0.698039)

[node name="Label" type="Label" parent="UpperZoomArea"]
offset_left = -74.0
offset_top = -251.0
offset_right = 79.0
offset_bottom = -121.0
theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1)
theme_override_fonts/font = ExtResource("7_ylx0h")
text = "Transition Type:
Circ

Duration:
0.3s"
horizontal_alignment = 1

[node name="PhantomCamera2D" type="Node2D" parent="UpperZoomArea"]
position = Vector2(2, -83)
script = ExtResource("5_gvv7r")
zoom = Vector2(2, 2)
tween_resource = SubResource("Resource_8jg5c")
draw_limits = true

[node name="ForwardArea" type="Area2D" parent="." node_paths=PackedStringArray("area_pcam")]
position = Vector2(1136, -38)
collision_layer = 2
collision_mask = 2
script = ExtResource("9_3r1pw")
area_pcam = NodePath("PhantomCamera2D")

[node name="CollisionShape2D" type="CollisionShape2D" parent="ForwardArea"]
position = Vector2(0, -42)
shape = SubResource("RectangleShape2D_uka0w")

[node name="ColorRect" type="ColorRect" parent="ForwardArea"]
offset_left = -280.0
offset_top = -122.0
offset_right = 280.0
offset_bottom = 38.0
size_flags_horizontal = 0
size_flags_vertical = 0
color = Color(0.556863, 0.447059, 0.545098, 0.698039)

[node name="Label" type="Label" parent="ForwardArea"]
offset_left = -76.0
offset_top = -252.0
offset_right = 77.0
offset_bottom = -122.0
theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1)
theme_override_fonts/font = ExtResource("7_ylx0h")
text = "Transition Type:
Back

Duration:
1.2s"
horizontal_alignment = 1

[node name="PhantomCamera2D" type="Node2D" parent="ForwardArea"]
position = Vector2(344, -46)
script = ExtResource("5_gvv7r")
zoom = Vector2(0.9, 0.9)
tween_resource = SubResource("Resource_e4e41")
draw_limits = true
