diff --git a/_game/LevelDemonstration.tscn b/_game/LevelDemonstration.tscn index 60a6768..1756ef3 100644 --- a/_game/LevelDemonstration.tscn +++ b/_game/LevelDemonstration.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://bj2318o3y68x2"] +[gd_scene load_steps=7 format=3 uid="uid://bj2318o3y68x2"] [ext_resource type="Script" uid="uid://ds6jy3s0hhmwt" path="res://_game/DemoScript.gd" id="1_2tycc"] [ext_resource type="PackedScene" uid="uid://cvqehvdjpoar4" path="res://_player/player_controller.tscn" id="2_gslp7"] @@ -6,7 +6,6 @@ [ext_resource type="PackedScene" uid="uid://bt55vmoc83l6g" path="res://_game/scenes/l_1_s_1.tscn" id="4_6jw57"] [ext_resource type="PackedScene" uid="uid://c6and5mqr3wv1" path="res://_game/scenes/l_1_s_2.tscn" id="5_2t6pm"] [ext_resource type="PackedScene" uid="uid://0sivr6aig7gm" path="res://_game/scenes/l_1_s_3.tscn" id="6_xkd7q"] -[ext_resource type="PackedScene" uid="uid://jd5d3i4xqj2m" path="res://_game/scenes/l_1_s_4.tscn" id="7_2t6pm"] [node name="Game" type="Node2D"] script = ExtResource("1_2tycc") @@ -21,7 +20,7 @@ collision_mask = 4 [node name="l1_s1" parent="." instance=ExtResource("4_6jw57")] [node name="l1_s2" parent="." instance=ExtResource("5_2t6pm")] +debug_log = true [node name="l1_s3" parent="." instance=ExtResource("6_xkd7q")] - -[node name="l1_s4" parent="." instance=ExtResource("7_2t6pm")] +debug_log = true diff --git a/_game/scenes/l_1_s_1.tscn b/_game/scenes/l_1_s_1.tscn index 28e10c2..2ddd013 100644 --- a/_game/scenes/l_1_s_1.tscn +++ b/_game/scenes/l_1_s_1.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=28 format=4 uid="uid://bt55vmoc83l6g"] +[gd_scene load_steps=32 format=4 uid="uid://bt55vmoc83l6g"] [ext_resource type="Script" uid="uid://5e157vdk6175" path="res://addons/reedscene/scene/ReedScene.gd" id="1_wiqi4"] [ext_resource type="Script" uid="uid://bh066o84byplh" path="res://addons/reedscene/scene/ReedSceneID.gd" id="2_1t0dx"] @@ -15,18 +15,24 @@ [ext_resource type="PackedScene" uid="uid://c3mievyfhx6ni" path="res://_props/coin/coin.tscn" id="11_1t0dx"] [ext_resource type="Script" uid="uid://cdvgq0xqdbagk" path="res://addons/reedscene/prop/ReedPropEffect.gd" id="12_fyfyw"] [ext_resource type="Script" uid="uid://jeybblac0kg2" path="res://addons/reedscene/prop/ReedTransition.gd" id="13_8hwae"] - -[sub_resource type="Resource" id="Resource_8hwae"] -script = ExtResource("6_fyfyw") +[ext_resource type="PackedScene" uid="uid://mi4omkkocmc0" path="res://_props/_prefabs/scene_static_camera.tscn" id="14_s6kod"] [sub_resource type="Resource" id="Resource_s6kod"] script = ExtResource("6_fyfyw") [sub_resource type="Resource" id="Resource_1dh04"] +script = ExtResource("6_fyfyw") + +[sub_resource type="Resource" id="Resource_spdfw"] +script = ExtResource("6_fyfyw") +state_id = 1 + +[sub_resource type="Resource" id="Resource_ykqcq"] script = ExtResource("5_a224g") prop_state_map = Dictionary[int, ExtResource("6_fyfyw")]({ -0: SubResource("Resource_8hwae"), -1: SubResource("Resource_s6kod") +0: SubResource("Resource_s6kod"), +1: SubResource("Resource_1dh04"), +2: SubResource("Resource_spdfw") }) [sub_resource type="Resource" id="Resource_gu0l6"] @@ -61,6 +67,9 @@ prop_state_map = Dictionary[int, ExtResource("6_fyfyw")]({ [sub_resource type="Resource" id="Resource_fyfyw"] script = ExtResource("12_fyfyw") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"reset_door_state_id" @@ -69,6 +78,9 @@ metadata/_custom_type_script = "uid://cdvgq0xqdbagk" [sub_resource type="Resource" id="Resource_bco80"] script = ExtResource("12_fyfyw") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"door_close" @@ -76,6 +88,9 @@ metadata/_custom_type_script = "uid://cdvgq0xqdbagk" [sub_resource type="Resource" id="Resource_22pon"] script = ExtResource("12_fyfyw") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"reset_door_state_id" @@ -84,13 +99,35 @@ metadata/_custom_type_script = "uid://cdvgq0xqdbagk" [sub_resource type="Resource" id="Resource_25twt"] script = ExtResource("12_fyfyw") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"door_open" metadata/_custom_type_script = "uid://cdvgq0xqdbagk" +[sub_resource type="Resource" id="Resource_rlswc"] +script = ExtResource("12_fyfyw") +target_type = 1 +child_node_name = &"Tool" +effect_type = 1 +value = null +func_name = &"release_self_priority" +metadata/_custom_type_script = "uid://cdvgq0xqdbagk" + +[sub_resource type="Resource" id="Resource_1vufk"] +script = ExtResource("12_fyfyw") +target_type = 1 +child_node_name = &"Tool" +effect_type = 1 +value = null +func_name = &"hold_self_priority" +metadata/_custom_type_script = "uid://cdvgq0xqdbagk" + [node name="l1_s1" type="Node2D"] script = ExtResource("1_wiqi4") +debug_log = true metadata/_custom_type_script = "uid://5e157vdk6175" [node name="[ID_ 9900001]" type="Node" parent="."] @@ -103,7 +140,7 @@ script = ExtResource("3_1t0dx") [node name="ActManager" type="Node" parent="."] script = ExtResource("4_a224g") prop_state_map = Dictionary[int, ExtResource("5_a224g")]({ -0: SubResource("Resource_1dh04"), +0: SubResource("Resource_ykqcq"), 1: SubResource("Resource_648qh"), 2: SubResource("Resource_jh33u") }) @@ -175,6 +212,27 @@ from_state_id = 0 effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_25twt")]) metadata/_custom_type_script = "uid://jeybblac0kg2" +[node name="SceneStaticCamera" parent="Props" instance=ExtResource("14_s6kod")] +position = Vector2(334, 183) +tween_on_load = false + +[node name="[Prop_0002]" type="Node" parent="Props/SceneStaticCamera"] +script = ExtResource("7_s6kod") +prop_id = 2 + +[node name="States" type="Node" parent="Props/SceneStaticCamera/[Prop_0002]"] +script = ExtResource("8_1dh04") + +[node name="[ID_0] Disable" type="Node" parent="Props/SceneStaticCamera/[Prop_0002]/States"] +script = ExtResource("9_648qh") +state_id = 0 +effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_rlswc")]) + +[node name="[ID_1] Enable" type="Node" parent="Props/SceneStaticCamera/[Prop_0002]/States"] +script = ExtResource("9_648qh") +state_id = 1 +effects = Array[ExtResource("12_fyfyw")]([SubResource("Resource_1vufk")]) + [node name="l1_s1_tile" parent="." instance=ExtResource("10_25twt")] tile_map_data = PackedByteArray("AAAAAAQAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAwAAAAAAAAAAAAAABQAAAAAAAAAAAAAABUAAAAAAAAAAAAAABYAAAAAAAAAAAABAAQAAAAAAAAAAAABAAUAAAAAAAAAAAABAAYAAAAAAAAAAAABAAcAAAAAAAAAAAABAAgAAAAAAAAAAAABAAkAAAAAAAAAAAABAAoAAAAAAAAAAAABAAsAAAAAAAAAAAABAAwAAAAAAAAAAAABABQAAAAAAAAAAAABABUAAAAAAAAAAAABABYAAAAAAAAAAAACABQAAAAAAAAAAAACABUAAAAAAAAAAAACABYAAAAAAAAAAAADAAAAAAAAAAAAAAADAAEAAAAAAAAAAAADAAIAAAAAAAAAAAADABQAAAAAAAAAAAADABUAAAAAAAAAAAADABYAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAEAAAAAAAAAAAAEAAIAAAAAAAAAAAAEABQAAAAAAAAAAAAEABUAAAAAAAAAAAAEABYAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAEAAAAAAAAAAAAFAAIAAAAAAAAAAAAFABQAAAAAAAAAAAAFABUAAAAAAAAAAAAFABYAAAAAAAAAAAAGABQAAAAAAAAAAAAGABUAAAAAAAAAAAAGABYAAAAAAAAAAAAHABQAAAAAAAAAAAAHABUAAAAAAAAAAAAHABYAA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AAAmAAIAAAAAAAAAAAAnAAAAAAAAAAAAAAAnAAEAAAAAAAAAAAAnAAIAAAAAAAAAAAAoAAAAAAAAAAAAAAAoAAEAAAAAAAAAAAAoAAIAAAAAAAAAAAApAAAAAAAAAAAAAAApAAEAAAAAAAAAAAApAAIAAAAAAAAAAAAoAAMAAAAAAAAAAAAoAAQAAAAAAAAAAAAoAAUAAAAAAAAAAAAoAAYAAAAAAAAAAAAoAAcAAAAAAAAAAAAoAAgAAAAAAAAAAAAoAAkAAAAAAAAAAAAoAAoAAAAAAAAAAAAoAAsAAAAAAAAAAAAoAAwAAAAAAAAAAAApAAMAAAAAAAAAAAApAAQAAAAAAAAAAAApAAUAAAAAAAAAAAApAAYAAAAAAAAAAAApAAcAAAAAAAAAAAApAAgAAAAAAAAAAAApAAkAAAAAAAAAAAApAAoAAAAAAAAAAAApAAsAAAAAAAAAAAApAAwAAAAAAAAAAAA=") diff --git a/_game/scenes/l_1_s_2.tscn b/_game/scenes/l_1_s_2.tscn index 4e00b4d..1668d8a 100644 --- a/_game/scenes/l_1_s_2.tscn +++ b/_game/scenes/l_1_s_2.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=23 format=4 uid="uid://c6and5mqr3wv1"] +[gd_scene load_steps=36 format=4 uid="uid://c6and5mqr3wv1"] [ext_resource type="Script" uid="uid://5e157vdk6175" path="res://addons/reedscene/scene/ReedScene.gd" id="1_of2em"] [ext_resource type="Script" uid="uid://bh066o84byplh" path="res://addons/reedscene/scene/ReedSceneID.gd" id="2_61x7c"] @@ -15,14 +15,20 @@ [ext_resource type="PackedScene" uid="uid://c3mievyfhx6ni" path="res://_props/coin/coin.tscn" id="11_61x7c"] [ext_resource type="Script" uid="uid://cdvgq0xqdbagk" path="res://addons/reedscene/prop/ReedPropEffect.gd" id="12_jhhb1"] [ext_resource type="Script" uid="uid://jeybblac0kg2" path="res://addons/reedscene/prop/ReedTransition.gd" id="13_5navl"] - -[sub_resource type="Resource" id="Resource_jhhb1"] -script = ExtResource("6_d8y7x") +[ext_resource type="PackedScene" uid="uid://mi4omkkocmc0" path="res://_props/_prefabs/scene_static_camera.tscn" id="14_5navl"] +[ext_resource type="PackedScene" uid="uid://bonrls3iuhdqb" path="res://_props/_prefabs/player_trigger_volumn.tscn" id="17_tr4o2"] [sub_resource type="Resource" id="Resource_5navl"] +script = ExtResource("6_d8y7x") + +[sub_resource type="Resource" id="Resource_meuxg"] +script = ExtResource("6_d8y7x") + +[sub_resource type="Resource" id="Resource_xs4uh"] script = ExtResource("5_0kem1") prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({ -0: SubResource("Resource_jhhb1") +0: SubResource("Resource_5navl"), +1: SubResource("Resource_meuxg") }) [sub_resource type="Resource" id="Resource_0kem1"] @@ -37,16 +43,60 @@ prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({ 0: SubResource("Resource_0kem1") }) +[sub_resource type="Resource" id="Resource_5ae3t"] +script = ExtResource("6_d8y7x") +state_id = 1 +metadata/_custom_type_script = "uid://baqgorvlumyju" + +[sub_resource type="Resource" id="Resource_5g8yg"] +script = ExtResource("5_0kem1") +prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({ +1: SubResource("Resource_5ae3t") +}) +metadata/_custom_type_script = "uid://fxpk2ot6otfh" + +[sub_resource type="Resource" id="Resource_dmdkg"] +script = ExtResource("6_d8y7x") +use_trans = true +metadata/_custom_type_script = "uid://baqgorvlumyju" + +[sub_resource type="Resource" id="Resource_bkxsb"] +script = ExtResource("6_d8y7x") +metadata/_custom_type_script = "uid://baqgorvlumyju" + +[sub_resource type="Resource" id="Resource_0u35w"] +script = ExtResource("5_0kem1") +prop_state_map = Dictionary[int, ExtResource("6_d8y7x")]({ +0: SubResource("Resource_dmdkg"), +1: SubResource("Resource_bkxsb") +}) + [sub_resource type="Resource" id="Resource_fyfyw"] script = ExtResource("12_jhhb1") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"reset_door_state_id" func_args = [0] metadata/_custom_type_script = "uid://cdvgq0xqdbagk" +[sub_resource type="Resource" id="Resource_bco80"] +script = ExtResource("12_jhhb1") +child_node_name = null +recursive_found = null +owned_node_only = null +effect_type = 1 +value = null +func_name = &"door_close" +metadata/_custom_type_script = "uid://cdvgq0xqdbagk" + [sub_resource type="Resource" id="Resource_22pon"] script = ExtResource("12_jhhb1") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"reset_door_state_id" @@ -55,11 +105,38 @@ metadata/_custom_type_script = "uid://cdvgq0xqdbagk" [sub_resource type="Resource" id="Resource_25twt"] script = ExtResource("12_jhhb1") +child_node_name = null +recursive_found = null +owned_node_only = null effect_type = 1 value = null func_name = &"door_open" metadata/_custom_type_script = "uid://cdvgq0xqdbagk" +[sub_resource type="Resource" id="Resource_rlswc"] +script = ExtResource("12_jhhb1") +target_type = 1 +child_node_name = &"Tool" +effect_type = 1 +value = null +func_name = &"release_self_priority" +metadata/_custom_type_script = "uid://cdvgq0xqdbagk" + +[sub_resource type="Resource" id="Resource_1vufk"] +script = ExtResource("12_jhhb1") +target_type = 1 +child_node_name = &"Tool" +effect_type = 1 +value = null +func_name = &"hold_self_priority" +metadata/_custom_type_script = "uid://cdvgq0xqdbagk" + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_meuxg"] +size = Vector2(41, 116) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_tr4o2"] +size = Vector2(130, 25) + [node name="l1_s2" type="Node2D"] script = ExtResource("1_of2em") metadata/_custom_type_script = "uid://5e157vdk6175" @@ -74,8 +151,10 @@ script = ExtResource("3_61x7c") [node name="ActManager" type="Node" parent="."] script = ExtResource("4_0kem1") prop_state_map = Dictionary[int, ExtResource("5_0kem1")]({ -0: SubResource("Resource_5navl"), -1: SubResource("Resource_tr4o2") +0: SubResource("Resource_xs4uh"), +1: SubResource("Resource_tr4o2"), +2: SubResource("Resource_5g8yg"), +3: SubResource("Resource_0u35w") }) [node name="Props" type="Node2D" parent="."] @@ -97,6 +176,12 @@ script = ExtResource("9_meuxg") state_id = 0 effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_fyfyw")]) +[node name="From1" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States/[ID_0] Close"] +script = ExtResource("13_5navl") +from_state_id = 1 +effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_bco80")]) +metadata/_custom_type_script = "uid://jeybblac0kg2" + [node name="[ID_1] Open" type="Node" parent="Props/EventTriggerDoor/[Prop_0000]/States"] script = ExtResource("9_meuxg") state_id = 1 @@ -108,10 +193,45 @@ from_state_id = 0 effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_25twt")]) metadata/_custom_type_script = "uid://jeybblac0kg2" +[node name="SceneStaticCamera" parent="Props" instance=ExtResource("14_5navl")] +position = Vector2(981, 183) + +[node name="[Prop_0001]" type="Node" parent="Props/SceneStaticCamera"] +script = ExtResource("7_5navl") +prop_id = 1 + +[node name="States" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]"] +script = ExtResource("8_tr4o2") + +[node name="[ID_0] Disable" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]/States"] +script = ExtResource("9_meuxg") +state_id = 0 +effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_rlswc")]) + +[node name="[ID_1] Enable" type="Node" parent="Props/SceneStaticCamera/[Prop_0001]/States"] +script = ExtResource("9_meuxg") +state_id = 1 +effects = Array[ExtResource("12_jhhb1")]([SubResource("Resource_1vufk")]) + [node name="l1_s2_tile" parent="." instance=ExtResource("10_xs4uh")] tile_map_data = PackedByteArray("AAApABQAAAAAAAAAAAApABUAAAAAAAAAAAApABYAAAAAAAAAAAAqABQAAAAAAAAAAAAqABUAAAAAAAAAAAAqABYAAAAAAAAAAAArAAwAAAAAAAAAAAArABQAAAAAAAAAAAArABUAAAAAAAAAAAArABYAAAAAAAAAAAAsAAkAAAAAAAAAAAAsAAoAAAAAAAAAAAAsAAsAAAAAAAAAAAAsAAwAAAAAAAAAAAA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AAAAAAA8ABUAAAAAAAAAAAA8ABYAAAAAAAAAAAA9ABQAAAAAAAAAAAA9ABUAAAAAAAAAAAA9ABYAAAAAAAAAAAA+ABQAAAAAAAAAAAA+ABUAAAAAAAAAAAA+ABYAAAAAAAAAAAA/ABQAAAAAAAAAAAA/ABUAAAAAAAAAAAA/ABYAAAAAAAAAAABAABQAAAAAAAAAAABAABUAAAAAAAAAAABAABYAAAAAAAAAAABBABQAAAAAAAAAAABBABUAAAAAAAAAAABBABYAAAAAAAAAAAApAAAAAAAAAAAAAAApAAEAAAAAAAAAAAApAAIAAAAAAAAAAAApAAMAAAAAAAAAAAApAAQAAAAAAAAAAAApAAUAAAAAAAAAAAApAAYAAAAAAAAAAAApAAcAAAAAAAAAAAApAAgAAAAAAAAAAAApAAkAAAAAAAAAAAApAAoAAAAAAAAAAAApAAsAAAAAAAAAAAApAAwAAAAAAAAAAABCABQAAAAAAAAAAABCABUAAAAAAAAAAABCABYAAAAAAAAAAABDABQAAAAAAAAAAABDABUAAAAAAAAAAABDABYAAAAAAAAAAABEABQAAAAAAAAAAABEABUAAAAAAAAAAABEABYAAAAAAAAAAABFABQAAAAAAAAAAABFABUAAAAAAAAAAABFABYAAAAAAAAAAABGABQAAAAAAAAAAABGABUAAAAAAAAAAABGABYAAAAAAAAAAABHABQAAAAAAAAAAABHABUAAAAAAAAAAABHABYAAAAAAAAAAABIABQAAAAAAAAAAABIABUAAAAAAAAAAABIABYAAAAAAAAAAABJABQAAAAAAAAAAABJABUAAAAAAAAAAABJABYAAAAAAAAAAABKABQAAAAAAAAAAABKABUAAAAAAAAAAABKABYAAAAAAAAAAABLABQAAAAAAAAAAABLABUAAAAAAAAAAABLABYAAAAAAAAAAABMABQAAAAAAAAAAABMABUAAAAAAAAAAABMABYAAAAAAAAAAABNABQAAAAAAAAAAABNABUAAAAAAAAAAABNABYAAAAAAAAAAABOABQAAAAAAAAAAABOABUAAAAAAAAAAABOABYAAAAAAAAAAABCAA0AAAAAAAAAAABCA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AAAA6AAwAAAAAAAAAAAA7AAsAAAAAAAAAAAA7AAwAAAAAAAAAAAA8AAsAAAAAAAAAAAA8AAwAAAAAAAAAAAA9AAsAAAAAAAAAAAA9AAwAAAAAAAAAAAA+AAsAAAAAAAAAAAA+AAwAAAAAAAAAAAA/AAsAAAAAAAAAAAA/AAwAAAAAAAAAAABAAAsAAAAAAAAAAABAAAwAAAAAAAAAAABBAAsAAAAAAAAAAABBAAwAAAAAAAAAAAA/AA0AAAAAAAAAAABAAA0AAAAAAAAAAABBAA0AAAAAAAAAAABAAA4AAAAAAAAAAABBAA4AAAAAAAAAAAA/AA4AAAAAAAAAAAA=") [node name="Coin" parent="." instance=ExtResource("11_61x7c")] position = Vector2(886, 151) +[node name="PlayerTriggerVolumn" parent="." instance=ExtResource("17_tr4o2")] +position = Vector2(688, 264) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTriggerVolumn"] +position = Vector2(0, 1) +shape = SubResource("RectangleShape2D_meuxg") + +[node name="PlayerTriggerVolumn2" parent="." instance=ExtResource("17_tr4o2")] +position = Vector2(927.645, -15) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTriggerVolumn2"] +shape = SubResource("RectangleShape2D_tr4o2") + [connection signal="collected" from="Coin" to="SceneManager" method="_on_coin_collected"] +[connection signal="player_entered" from="PlayerTriggerVolumn" to="SceneManager" method="_on_player_trigger_volumn_player_entered"] +[connection signal="player_entered" from="PlayerTriggerVolumn2" to="SceneManager" method="_on_player_trigger_volumn_2_player_entered"] diff --git a/_game/scenes/scripts/s_l1_s2.gd b/_game/scenes/scripts/s_l1_s2.gd index 78841c0..dde51d8 100644 --- a/_game/scenes/scripts/s_l1_s2.gd +++ b/_game/scenes/scripts/s_l1_s2.gd @@ -6,3 +6,11 @@ func _on_coin_collected(collector: Node2D) -> void: var l1_s1: ReedScene = ReedSceneRegistry.get_scene(9900001) if l1_s1: l1_s1.switch_act_by_id(2) + + +func _on_player_trigger_volumn_player_entered(body: CharacterBody2D) -> void: + _act_manager.switch_act_with_id(2) + + +func _on_player_trigger_volumn_2_player_entered(body: CharacterBody2D) -> void: + _act_manager.switch_act_with_id(3) diff --git a/_player/Avatar.tscn b/_player/Avatar.tscn index 86bc0ea..a9b13a6 100644 --- a/_player/Avatar.tscn +++ b/_player/Avatar.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=39 format=3 uid="uid://gwhff4qaouxy"] +[gd_scene load_steps=40 format=3 uid="uid://gwhff4qaouxy"] [ext_resource type="Script" uid="uid://dq1g1qp66chwy" path="res://_player/avatar.gd" id="1_rkqpu"] [ext_resource type="Script" uid="uid://isu8onknb75o" path="res://_player/states/character_state_machine.gd" id="1_wvs5h"] @@ -23,7 +23,6 @@ [ext_resource type="Script" uid="uid://ca88urm45gx2c" path="res://_player/states/dead.gd" id="17_5r2pj"] [ext_resource type="Script" uid="uid://bqrel2r5hcmxk" path="res://_player/states/grapping.gd" id="19_u7cua"] [ext_resource type="PackedScene" uid="uid://blm8q46h3v2im" path="res://addons/reedcomponent/locomotion/wall_detector.tscn" id="20_air0b"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="20_ogl63"] [ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="21_5r2pj"] [ext_resource type="Script" uid="uid://bkkkyugppu7sl" path="res://addons/reedcomponent/grap_hook/spawn_hook_component.gd" id="21_p14kj"] [ext_resource type="Script" uid="uid://ta2r2bc1nrwe" path="res://addons/reedfx/vfx/VFXManager.gd" id="24_mwlgv"] @@ -34,6 +33,8 @@ [ext_resource type="Resource" uid="uid://do0bnwse614jw" path="res://_player/effect_binding/land_dust.tres" id="26_s5egm"] [ext_resource type="Script" uid="uid://bijoqygv6tncj" path="res://addons/reedcomponent/SingleComponentRemotor.gd" id="28_mxt3b"] [ext_resource type="Resource" uid="uid://bdad4yjv1q0uu" path="res://_player/effect_binding/jump_dust.tres" id="30_hquoe"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="32_u7cua"] +[ext_resource type="Script" uid="uid://bueehfgv5vnc0" path="res://_player/extra/camera_priority_locker.gd" id="34_1a1t3"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_qnulu"] size = Vector2(9, 23) @@ -42,7 +43,7 @@ size = Vector2(9, 23) atlas = ExtResource("2_8nsdm") region = Rect2(9, 22, 13, 26) -[sub_resource type="Resource" id="Resource_p14kj"] +[sub_resource type="Resource" id="Resource_1a1t3"] script = ExtResource("21_5r2pj") [sub_resource type="RectangleShape2D" id="RectangleShape2D_ogl63"] @@ -181,10 +182,14 @@ metadata/_custom_type_script = "uid://ta2r2bc1nrwe" [node name="PhantomCamera2D" type="Node2D" parent="."] position = Vector2(50, -75) -script = ExtResource("20_ogl63") -tween_resource = SubResource("Resource_p14kj") +script = ExtResource("32_u7cua") +tween_resource = SubResource("Resource_1a1t3") metadata/_custom_type_script = "uid://bhexx6mj1xv3q" +[node name="Locker" type="Node" parent="PhantomCamera2D" node_paths=PackedStringArray("target_camera")] +script = ExtResource("34_1a1t3") +target_camera = NodePath("..") + [node name="HitBox" type="Area2D" parent="."] unique_name_in_owner = true collision_layer = 0 diff --git a/_player/extra/camera_priority_locker.gd b/_player/extra/camera_priority_locker.gd new file mode 100644 index 0000000..8986d10 --- /dev/null +++ b/_player/extra/camera_priority_locker.gd @@ -0,0 +1,30 @@ +''' +此脚本可以强制让一个相机的Priority锁定为1 +''' +extends Node + +@export var target_camera: PhantomCamera2D + +var _p + +func _ready() -> void: + _p = target_camera + if not _p: + _p = get_parent() as PhantomCamera2D + + if not _p: + printerr("[CameraLocker]: No vaild Camera Founded") + + var pcm = Engine.get_singleton("PhantomCameraManager") + pcm.pcam_priority_changed.connect(_enforce) + pcm.pcam_visibility_changed.connect(_enforce) + + # 启动时先保证一次 + _enforce() + +func _enforce(_pcam = null): + if not is_instance_valid(_p): + return + + if _p.get_priority() != 1: + _p.set_priority(1) diff --git a/_player/extra/camera_priority_locker.gd.uid b/_player/extra/camera_priority_locker.gd.uid new file mode 100644 index 0000000..d423d6a --- /dev/null +++ b/_player/extra/camera_priority_locker.gd.uid @@ -0,0 +1 @@ +uid://bueehfgv5vnc0 diff --git a/_props/_prefabs/camera_tool.gd b/_props/_prefabs/camera_tool.gd new file mode 100644 index 0000000..d14cf69 --- /dev/null +++ b/_props/_prefabs/camera_tool.gd @@ -0,0 +1,25 @@ +extends Node + +@export var binded_camera: PhantomCamera2D + +var _binded_cam: PhantomCamera2D + +func _ready() -> void: + _binded_cam = binded_camera + if not _binded_cam: + _binded_cam = get_parent() as PhantomCamera2D + + if not _binded_cam: + printerr("[CameraTool]: No Vaild Camera Founded") + +## 将自己的priority设置为最高 +func hold_self_priority() -> void: + var pcs = PhantomCameraManager.get_phantom_camera_2ds() + for pc in pcs: + pc.priority = -1 + + _binded_cam.priority = 100 + +## 将自己的priority设置为不可用 +func release_self_priority() -> void: + _binded_cam.priority = -1 diff --git a/_props/_prefabs/camera_tool.gd.uid b/_props/_prefabs/camera_tool.gd.uid new file mode 100644 index 0000000..1e4dd4c --- /dev/null +++ b/_props/_prefabs/camera_tool.gd.uid @@ -0,0 +1 @@ +uid://ce7d2tpunfaxe diff --git a/_props/_prefabs/scene_static_camera.tscn b/_props/_prefabs/scene_static_camera.tscn new file mode 100644 index 0000000..a103fa5 --- /dev/null +++ b/_props/_prefabs/scene_static_camera.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=5 format=3 uid="uid://mi4omkkocmc0"] + +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="1_p2s6f"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="2_77rrp"] +[ext_resource type="Script" uid="uid://ce7d2tpunfaxe" path="res://_props/_prefabs/camera_tool.gd" id="3_77rrp"] + +[sub_resource type="Resource" id="Resource_gofl0"] +script = ExtResource("2_77rrp") + +[node name="SceneStaticCamera" type="Node2D"] +script = ExtResource("1_p2s6f") +tween_resource = SubResource("Resource_gofl0") +metadata/_custom_type_script = "uid://bhexx6mj1xv3q" + +[node name="Tool" type="Node" parent="." node_paths=PackedStringArray("binded_camera")] +script = ExtResource("3_77rrp") +binded_camera = NodePath("..") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_example_scene.tscn deleted file mode 100644 index beca1b9..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_example_scene.tscn +++ /dev/null @@ -1,249 +0,0 @@ -[gd_scene load_steps=12 format=4 uid="uid://ohwjxojqcj63"] - -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_foq54"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_kmt5y"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_1cmgi"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="4_4dx73"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_gcww2"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_i3g4f"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="7_j2i8l"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_ytjsp"] -[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_o4c4h"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_yx3lp"] -texture = ExtResource("1_foq54") -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_nawqc"] -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_yx3lp") - -[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_nawqc") -collision_enabled = false -navigation_enabled = false - -[node name="Terrain" type="TileMapLayer" parent="."] -use_parent_material = true -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEAAAACAAMAAAALAAEAAAACAAQAAAALAAEAAAACAAUAAAALAAEAAAACAAYAAAALAAEAAAADAAEAAAALAAEAAAADAAIAAAALAAEAAAADAAMAAAALAAEAAAADAAQAAAALAAEAAAADAAUAAAALAAEAAAADAAYAAAALAAEAAAAEAAEAAAAHAAEAAAAEAAIAAAALAAEAAAAEAAMAAAALAAEAAAAEAAQAAAALAAEAAAAEAAUAAAALAAEAAAAEAAYAAAALAAEAAAAFAAEAAAALAAEAAAAFAAIAAAALAAEAAAAFAAMAAAALAAEAAAAFAAQAAAAHAAEAAAAFAAUAAAALAAEAAAAFAAYAAAALAAEAAAAGAAEAAAALAAEAAAAGAAIAAAALAAEAAAAGAAMAAAALAAEAAAAGAAQAAAALAAEAAAAGAAUAAAALAAEAAAAGAAYAAAALAAEAAAAHAAEAAAALAAEAAAAHAAIAAAALAAEAAAAHAA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AD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") -tile_set = SubResource("TileSet_nawqc") - -[node name="UI" type="CanvasLayer" parent="."] - -[node name="UIInventory" parent="UI" instance=ExtResource("2_kmt5y")] -unique_name_in_owner = true -visible = false - -[node name="UISign" parent="UI" instance=ExtResource("3_1cmgi")] -unique_name_in_owner = true -visible = false - -[node name="Controls" type="Label" parent="."] -offset_left = 167.0 -offset_top = -145.0 -offset_right = 332.0 -offset_bottom = -81.0 -theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("4_4dx73") -text = "[WASD] to move -[Space] to jump" - -[node name="Camera2D" type="Camera2D" parent="."] -physics_interpolation_mode = 1 -position = Vector2(227, -28) -zoom = Vector2(1.5, 1.5) -process_callback = 0 -editor_draw_limits = true - -[node name="PhantomCameraHost" type="Node" parent="Camera2D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("5_gcww2") - -[node name="Player" type="Node" parent="."] - -[node name="PlayerPhantomCamera2D" type="Node2D" parent="Player" node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -process_priority = -1 -top_level = true -position = Vector2(227, -28) -script = ExtResource("6_i3g4f") -priority = 10 -follow_mode = 2 -follow_target = NodePath("../CharacterBody2D") -zoom = Vector2(1.5, 1.5) -frame_preview = false -tween_resource = ExtResource("7_j2i8l") -tween_on_load = false -follow_damping = true -draw_limits = true - -[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_ytjsp")] -position = Vector2(227, -28) -script = ExtResource("9_o4c4h") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_framed_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_framed_example_scene.tscn deleted file mode 100644 index 9b9cc88..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_framed_example_scene.tscn +++ /dev/null @@ -1,251 +0,0 @@ -[gd_scene load_steps=12 format=4 uid="uid://dg1tuoxd3b4tw"] - -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_nf5bo"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_5oggv"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_aku7q"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_j3ux0"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_uwr6r"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_4l0c3"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_briql"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_i4m1d"] -[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_m3lnd"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dpuou"] -texture = ExtResource("1_nf5bo") -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_kxirl"] -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_dpuou") - -[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 = -345.0 -offset_top = -143.0 -offset_right = 947.0 -offset_bottom = 578.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_kxirl") -collision_enabled = false -navigation_enabled = false - -[node name="Terrain" type="TileMapLayer" parent="."] -use_parent_material = true -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGA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AAAMAAUAAAAgAAYAAAAMAAUAAAAgAAcAAAAMAAUAAAAhAAAAAAAMAAUAAAAhAAEAAAAMAAUAAAAhAAIAAAAKAAYAAAAhAAMAAAAMAAUAAAAhAAQAAAAMAAUAAAAhAAUAAAAMAAUAAAAhAAYAAAAMAAUAAAAhAAcAAAAMAAUAAAAiAAAAAAAMAAUAAAAiAAEAAAAMAAUAAAAiAAIAAAAMAAUAAAAiAAMAAAAMAAUAAAAiAAQAAAAKAAYAAAAiAAUAAAAKAAYAAAAiAAYAAAAMAAUAAAAiAAcAAAAMAAUAAAAjAAAAAAAMAAUAAAAjAAEAAAAMAAUAAAAjAAIAAAAMAAUAAAAjAAMAAAAMAAUAAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAjAAYAAAAMAAUAAAAjAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") -tile_set = SubResource("TileSet_kxirl") - -[node name="UI" type="CanvasLayer" parent="."] - -[node name="UIInventory" parent="UI" instance=ExtResource("2_5oggv")] -unique_name_in_owner = true -visible = false - -[node name="UISign" parent="UI" instance=ExtResource("3_aku7q")] -unique_name_in_owner = true -visible = false - -[node name="Camera2D" type="Camera2D" parent="."] -physics_interpolation_mode = 1 -position = Vector2(215, -73) -zoom = Vector2(2, 2) -process_callback = 0 -editor_draw_limits = true - -[node name="PhantomCameraHost" type="Node" parent="Camera2D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("4_j3ux0") - -[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(215, -73) -script = ExtResource("5_uwr6r") -priority = 5 -follow_mode = 5 -follow_target = NodePath("../CharacterBody2D") -zoom = Vector2(2, 2) -tween_resource = ExtResource("6_4l0c3") -tween_on_load = false -follow_offset = Vector2(0, -45) -follow_damping = true -dead_zone_width = 0.25 -dead_zone_height = 0.8 -show_viewfinder_in_play = true -draw_limits = true - -[node name="Label" type="Label" parent="Player"] -offset_left = 167.0 -offset_top = -145.0 -offset_right = 332.0 -offset_bottom = -81.0 -theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("7_briql") -text = "[WASD] to move -[Space] to jump" - -[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_i4m1d")] -position = Vector2(215, -28) -script = ExtResource("9_m3lnd") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_group_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_group_example_scene.tscn deleted file mode 100644 index dd7bcbc..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_group_example_scene.tscn +++ /dev/null @@ -1,261 +0,0 @@ -[gd_scene load_steps=14 format=4 uid="uid://bio6mao7gtru2"] - -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_8rflf"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_tafwr"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_37c7w"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_dxiro"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="5_gaaip"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_ojk83"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="7_awenl"] -[ext_resource type="Texture2D" uid="uid://cwep0on2tthn7" path="res://addons/phantom_camera/examples/textures/2D/phantom_camera_2d_sprite.png" id="8_ys0m4"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="9_witv0"] -[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="10_aivri"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3qxnm"] -texture = ExtResource("1_8rflf") -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_14yng"] -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_3qxnm") - -[sub_resource type="Resource" id="Resource_spy00"] -script = ExtResource("7_awenl") -duration = 0.3 -transition = 4 -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_14yng") -collision_enabled = false -navigation_enabled = false - -[node name="Terrain" type="TileMapLayer" parent="."] -use_parent_material = true -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEA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AAAAMAAUAAAAiAAAAAAAMAAUAAAAiAAEAAAAMAAUAAAAiAAIAAAAMAAUAAAAiAAMAAAAMAAUAAAAiAAQAAAAKAAYAAAAiAAUAAAAKAAYAAAAiAAYAAAAMAAUAAAAiAAcAAAAMAAUAAAAjAAAAAAAMAAUAAAAjAAEAAAAMAAUAAAAjAAIAAAAMAAUAAAAjAAMAAAAMAAUAAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAjAAYAAAAMAAUAAAAjAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") -tile_set = SubResource("TileSet_14yng") - -[node name="UI" type="CanvasLayer" parent="."] - -[node name="UIInventory" parent="UI" instance=ExtResource("2_tafwr")] -unique_name_in_owner = true -visible = false - -[node name="UISign" parent="UI" instance=ExtResource("3_37c7w")] -unique_name_in_owner = true -visible = false - -[node name="Camera2D" type="Camera2D" parent="."] -physics_interpolation_mode = 1 -position = Vector2(186, -172.5) -zoom = Vector2(1.5, 1.5) -process_callback = 0 -position_smoothing_speed = 8.0 -editor_draw_limits = true - -[node name="PhantomCameraHost" type="Node" parent="Camera2D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("4_dxiro") - -[node name="Label" type="Label" parent="."] -offset_left = 167.0 -offset_top = -133.0 -offset_right = 332.0 -offset_bottom = -69.0 -theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("5_gaaip") -text = "[WASD] to move -[Space] to jump" - -[node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_targets")] -top_level = true -position = Vector2(186, -172.5) -script = ExtResource("6_ojk83") -priority = 10 -follow_mode = 3 -follow_targets = [NodePath("../CharacterBody2D"), NodePath("../GroupNPCSprite")] -zoom = Vector2(1.5, 1.5) -tween_resource = SubResource("Resource_spy00") -tween_on_load = false -follow_damping = true -auto_zoom = true -auto_zoom_min = 0.5 -auto_zoom_max = 1.5 -auto_zoom_margin = Vector4(200, 0, 200, 0) -draw_limits = true - -[node name="GroupNPCSprite" type="Sprite2D" parent="."] -unique_name_in_owner = true -position = Vector2(107, -316) -texture = ExtResource("8_ys0m4") - -[node name="CharacterBody2D" parent="." instance=ExtResource("9_witv0")] -position = Vector2(265, -29) -script = ExtResource("10_aivri") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_path_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_path_example_scene.tscn deleted file mode 100644 index 60342a2..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_follow_path_example_scene.tscn +++ /dev/null @@ -1,269 +0,0 @@ -[gd_scene load_steps=13 format=4 uid="uid://b75giavcvh1mv"] - -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_t003o"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_4ncqd"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_tpji3"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_w0rat"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="5_q77r4"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_y6hoa"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="7_wd55r"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_fy81j"] -[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_u6ygl"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_nivvc"] -texture = ExtResource("1_t003o") -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_eyojy"] -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_nivvc") - -[sub_resource type="Curve2D" id="Curve2D_usrhf"] -_data = { -"points": PackedVector2Array(-96.4111, 42.3785, 0, 0, 222, 0, 0, 0, 0, 0, 1580.53, 0) -} -point_count = 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_eyojy") -collision_enabled = false -navigation_enabled = false - -[node name="Terrain" type="TileMapLayer" parent="."] -use_parent_material = true -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEA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wAPn/AAAMAAUAAAAwAPr/AAAMAAUAAAAwAPv/AAAMAAUAAAAwAPz/AAAMAAUAAAAwAP3/AAAMAAYAAAAxAPb/AAAMAAQAAAAxAPf/AAAMAAUAAAAxAPj/AAAMAAUAAAAxAPn/AAAMAAUAAAAxAPr/AAAMAAUAAAAxAPv/AAAMAAUAAAAxAPz/AAAMAAUAAAAxAP3/AAAMAAYAAAAyAPb/AAAMAAQAAAAyAPf/AAAMAAUAAAAyAPj/AAAMAAUAAAAyAPn/AAAMAAUAAAAyAPr/AAAMAAUAAAAyAPv/AAAMAAUAAAAyAPz/AAAMAAUAAAAyAP3/AAAMAAUAAAArAP7/AAANAAQAAAArAP//AAANAAUAAAArAAAAAAANAAUAAAArAAEAAAANAAUAAAArAAIAAAANAAUAAAArAAMAAAANAAUAAAArAAQAAAANAAUAAAArAAUAAAANAAUAAAArAAYAAAANAAUAAAArAAcAAAANAAUAAAArAAgAAAANAAUAAAArAAkAAAANAAUAAAArAAoAAAANAAUAAAArAAsAAAANAAYAAAA=") -tile_set = SubResource("TileSet_eyojy") - -[node name="UI" type="CanvasLayer" parent="."] - -[node name="UIInventory" parent="UI" instance=ExtResource("2_4ncqd")] -unique_name_in_owner = true -visible = false - -[node name="UISign" parent="UI" instance=ExtResource("3_tpji3")] -unique_name_in_owner = true -visible = false - -[node name="Camera2D" type="Camera2D" parent="."] -physics_interpolation_mode = 1 -position = Vector2(374, -190) -zoom = Vector2(1.5, 1.5) -process_callback = 0 -editor_draw_limits = true - -[node name="PhantomCameraHost" type="Node" parent="Camera2D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("4_w0rat") - -[node name="Label" type="Label" parent="."] -offset_left = 167.0 -offset_top = -133.0 -offset_right = 332.0 -offset_bottom = -69.0 -theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("5_q77r4") -text = "[WASD] to move -[Space] to jump" - -[node name="Player" type="Node" parent="."] - -[node name="Label" type="Label" parent="Player"] -visible = false -offset_left = 167.0 -offset_top = -145.0 -offset_right = 332.0 -offset_bottom = -81.0 -theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("5_q77r4") -text = "[WASD] to move -[Space] to jump" - -[node name="PlayerPhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target", "follow_path")] -unique_name_in_owner = true -top_level = true -position = Vector2(374, -190) -script = ExtResource("6_y6hoa") -priority = 10 -follow_mode = 4 -follow_target = NodePath("../CharacterBody2D") -follow_path = NodePath("../Path2D") -zoom = Vector2(1.5, 1.5) -tween_resource = ExtResource("7_wd55r") -tween_on_load = false -follow_damping = true -draw_limits = true - -[node name="Path2D" type="Path2D" parent="."] -position = Vector2(152, -190) -curve = SubResource("Curve2D_usrhf") - -[node name="CharacterBody2D" parent="." instance=ExtResource("8_fy81j")] -position = Vector2(225, -28) -script = ExtResource("9_u6ygl") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_limit_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_limit_example_scene.tscn deleted file mode 100644 index 798b549..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_limit_example_scene.tscn +++ /dev/null @@ -1,319 +0,0 @@ -[gd_scene load_steps=17 format=4 uid="uid://0ox7hgdpwpqp"] - -[ext_resource type="Script" uid="uid://dtcuvut1eklnd" path="res://addons/phantom_camera/examples/scripts/2D/2d_room_limit_tween_4.3.gd" id="1_bwr3f"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="2_f03of"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="3_cysy4"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="4_qqut6"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="5_yv8tn"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_2n5r1"] -[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="6_68ewj"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="7_ne05h"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="8_hulu3"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("2_f03of") -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_kf7eg"] -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_easgx") - -[sub_resource type="Resource" id="Resource_ct1eh"] -script = ExtResource("7_ne05h") -duration = 0.9 -transition = 2 -ease = 2 - -[sub_resource type="RectangleShape2D" id="RectangleShape2D_xmxri"] -size = Vector2(790, 410) - -[sub_resource type="Resource" id="Resource_exr3j"] -script = ExtResource("7_ne05h") -duration = 0.9 -transition = 2 -ease = 2 - -[sub_resource type="RectangleShape2D" id="RectangleShape2D_wtfjw"] -size = Vector2(1530, 700) - -[sub_resource type="RectangleShape2D" id="RectangleShape2D_daeuh"] -size = Vector2(1027.5, 610.5) - -[node name="ExampleScene2D" type="Node2D"] -script = ExtResource("1_bwr3f") - -[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) -metadata/_edit_lock_ = true - -[node name="StartingTerrain" type="TileMapLayer" parent="."] -z_index = 1 -use_parent_material = true -position = Vector2(-97, 0) -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAD9/wAAAAALAAAAAAD+/wAAAAALAAAAAAD//wAAAAALAAAAAAAAAAAAAAALAAAAAAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAD8/wAAAAALAAAAAAD7/wAAAAAKAAAAAAD7/wEAAAAKAAEAAAD7/wIAAAAKAAEAAAD7/wMAAAAKAAEAAAD7/wQAAAAKAAEAAAD7/wUAAAAKAAEAAAD8/wEAAAALAAEAAAD8/wIAAAALAAEAAAD8/wMAAAALAAEAAAD8/wQAAAALAAEAAAD8/wUAAAALAAEAAAD9/wEAAAALAAEAAAD9/wIAAAALAAEAAAD9/wMAAAALAAEAAAD9/wQAAAALAAEAAAD9/wUAAAALAAEAAAD+/wEAAAALAAEAAAD+/wIAAAALAAEAAAD+/wMAAAALAAEAAAD+/wQAAAALAAEAAAD+/wUAAAALAAEAAAD//wEAAAALAAEAAAD//wIAAAALAAEAAAD//wMAAAALAAEAAAD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Pn/AAAMAAYAAAD8//X/AAAMAAQAAAD9//X/AAAMAAQAAAD+//X/AAAMAAQAAAD///X/AAAMAAQAAAAAAPX/AAAMAAQAAAABAPX/AAAMAAQAAAACAPX/AAAMAAQAAAADAPX/AAAMAAQAAAAEAPX/AAAMAAQAAAAFAPX/AAAMAAQAAAAGAPX/AAAMAAQAAAAHAPX/AAAMAAQAAAAIAPX/AAAMAAQAAAAJAPX/AAANAAQAAAAJAPb/AAANAAUAAAAJAPf/AAANAAUAAAAJAPj/AAANAAUAAAAJAPn/AAANAAYAAAD8//b/AAAMAAUAAAD8//f/AAAMAAUAAAD8//j/AAAMAAUAAAD9//b/AAAMAAUAAAD9//f/AAAMAAUAAAD9//j/AAAMAAUAAAD+//b/AAAMAAUAAAD+//f/AAAMAAUAAAD+//j/AAAMAAUAAAD///b/AAAMAAUAAAD///f/AAAMAAUAAAD///j/AAAMAAUAAAAAAPb/AAAMAAUAAAAAAPf/AAAMAAUAAAAAAPj/AAAMAAUAAAABAPb/AAAMAAUAAAABAPf/AAAMAAUAAAABAPj/AAAMAAUAAAACAPb/AAAMAAUAAAACAPf/AAAMAAUAAAACAPj/AAAMAAUAAAADAPb/AAAMAAUAAAADAPf/AAAMAAUAAAADAPj/AAAMAAUAAAAEAPb/AAAMAAUAAAAEAPf/AAAMAAUAAAAEAPj/AAAMAAUAAAAFAPb/AAAMAAUAAAAFAPf/AAAMAAUAAAAFAPj/AAAMAAUAAAAGAPb/AAAMAAUAAAAGAPf/AAAMAAUAAAAGAPj/AAAMAAUAAAAHAPb/AAAMAAUAAAAHAPf/AAAMAAUAAAAHAPj/AAAMAAUAAAAIAPb/AAAMAAUAAAAIAPf/AAAMAAUAAAAIAPj/AAAMAAUAAAA=") -tile_set = SubResource("TileSet_kf7eg") - -[node name="OtherTerrain" type="TileMapLayer" parent="."] -z_index = 1 -use_parent_material = true -scale = Vector2(3, 3) -tile_map_data = PackedByteArray("AAAIAAAAAAAMAAQAAAAJAAAAAAAMAAQAAAA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AMAAQAAAAhAAEAAAAMAAUAAAAhAAIAAAAMAAUAAAAhAAMAAAAMAAUAAAAhAAQAAAAMAAUAAAAhAAUAAAAMAAUAAAAiAAAAAAAMAAQAAAAiAAEAAAAMAAUAAAAiAAIAAAAMAAUAAAAiAAMAAAAMAAUAAAAiAAQAAAAMAAUAAAAiAAUAAAAMAAUAAAAjAAAAAAAMAAQAAAAjAAEAAAAMAAUAAAAjAAIAAAAMAAUAAAAjAAMAAAAMAAUAAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAkAAAAAAAMAAQAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAlAAAAAAAMAAQAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAmAP//AAAOAAMAAAAnAP//AAAPAAMAAAAoAP//AAAPAAMAAAApAP//AAAPAAMAAAAqAP//AAAPAAMAAAArAP//AAAPAAMAAAAsAP//AAAPAAMAAAAtAP//AAAPAAMAAAAuAP//AAAPAAMAAAAvAP//AAAPAAMAAAAwAP//AAAQAAMAAAAxAPf/AAAHAAQAAAAxAPj/AAAHAAUAAAAxAPn/AAAHAAUAAAAxAPr/AAAHAAUAAAAxAPv/AAAHAAUAAAAxAPz/AAAHAAUAAAAxAP3/AAAHAAUAAAAxAP7/AAAHAAUAAAAxAP//AAAHAAYAAAA=") -tile_set = SubResource("TileSet_kf7eg") - -[node name="UI" type="CanvasLayer" parent="."] - -[node name="UIInventory" parent="UI" instance=ExtResource("3_cysy4")] -unique_name_in_owner = true -visible = false - -[node name="UISign" parent="UI" instance=ExtResource("4_qqut6")] -unique_name_in_owner = true -visible = false - -[node name="CharacterBody2D" parent="." instance=ExtResource("5_yv8tn")] -unique_name_in_owner = true -z_index = 1 -position = Vector2(66, -28) -script = ExtResource("6_68ewj") - -[node name="RoomLeftPhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -top_level = true -position = Vector2(66, -91.205) -script = ExtResource("6_2n5r1") -priority = 5 -follow_mode = 2 -follow_target = NodePath("../CharacterBody2D") -zoom = Vector2(2, 2) -tween_resource = SubResource("Resource_ct1eh") -follow_offset = Vector2(0, -63.205) -follow_damping = true -draw_limits = true -limit_target = NodePath("../StartingTerrain") -limit_margin = Vector4i(-50, 0, -50, 0) - -[node name="RoomLeftArea2D" type="Area2D" parent="."] -unique_name_in_owner = true -position = Vector2(117, -174) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="RoomLeftArea2D"] -position = Vector2(-79, 43) -shape = SubResource("RectangleShape2D_xmxri") -debug_color = Color(0, 0.6, 0.701961, 0.0313726) - -[node name="RoomCentrePhantomCamera2D" type="Node2D" parent="."] -unique_name_in_owner = true -top_level = true -position = Vector2(1218, -217) -script = ExtResource("6_2n5r1") -follow_mode = 2 -zoom = Vector2(1.5, 1.5) -tween_resource = SubResource("Resource_exr3j") -follow_damping = true -draw_limits = true -limit_target = NodePath("../RoomCentreArea2D/CollisionShape2D") - -[node name="RoomCentreArea2D" type="Area2D" parent="."] -unique_name_in_owner = true -position = Vector2(755, -179) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="RoomCentreArea2D"] -position = Vector2(338, -28) -shape = SubResource("RectangleShape2D_wtfjw") -debug_color = Color(0, 0.6, 0.701961, 0) - -[node name="RoomRightArea2D" type="Area2D" parent="."] -unique_name_in_owner = true -position = Vector2(2065, -160) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="RoomRightArea2D"] -position = Vector2(255.75, -3.25) -shape = SubResource("RectangleShape2D_daeuh") -debug_color = Color(0, 0.6, 0.701961, 0) - -[node name="RoomRightPhantomCamera2D" type="Node2D" parent="."] -unique_name_in_owner = true -top_level = true -position = Vector2(2347, -156) -scale = Vector2(1.0024, 1) -script = ExtResource("6_2n5r1") -follow_mode = 2 -zoom = Vector2(2, 2) -tween_resource = SubResource("Resource_exr3j") -follow_damping = true -draw_limits = true - -[node name="Camera2D" type="Camera2D" parent="."] -physics_interpolation_mode = 1 -position = Vector2(66, -91.205) -zoom = Vector2(2, 2) -process_callback = 0 -limit_left = -387 -limit_top = -528 -limit_right = 433 -limit_bottom = 288 -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("8_hulu3") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_tweening_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_tweening_example_scene.tscn deleted file mode 100644 index 523b72c..0000000 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_tweening_example_scene.tscn +++ /dev/null @@ -1,402 +0,0 @@ -[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("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAM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AAiAAMAAAAMAAUAAAAiAAQAAAAKAAYAAAAiAAUAAAAKAAYAAAAiAAYAAAAMAAUAAAAiAAcAAAAMAAUAAAAjAAAAAAAMAAUAAAAjAAEAAAAMAAUAAAAjAAIAAAAMAAUAAAAjAAMAAAAMAAUAAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAjAAYAAAAMAAUAAAAjAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") -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 diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_example_scene.tscn index 7729dbb..beca1b9 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_example_scene.tscn @@ -1,16 +1,17 @@ -[gd_scene load_steps=11 format=3 uid="uid://drvexsp2t0nfy"] +[gd_scene load_steps=12 format=4 uid="uid://ohwjxojqcj63"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_1utlo"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="2_mgsut"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_54fc4"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="6_kqt1v"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_pxbym"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="7_62i3t"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="7_fdx1s"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="12_k4p0h"] +[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_foq54"] +[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_kmt5y"] +[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_1cmgi"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="4_4dx73"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_gcww2"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_i3g4f"] +[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="7_j2i8l"] +[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_ytjsp"] +[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_o4c4h"] -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("1_1utlo") +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_yx3lp"] +texture = ExtResource("1_foq54") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -152,15 +153,15 @@ texture = ExtResource("1_1utlo") 15:6/0 = 0 16:6/0 = 0 -[sub_resource type="TileSet" id="TileSet_kf7eg"] +[sub_resource type="TileSet" id="TileSet_nawqc"] 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_easgx") +sources/0 = SubResource("TileSetAtlasSource_yx3lp") -[node name="ExampleScene2D2" type="Node2D"] +[node name="Root" type="Node2D"] [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -179,24 +180,27 @@ grow_vertical = 2 localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="Pillar" type="TileMapLayer" parent="."] +use_parent_material = true scale = Vector2(3, 3) -tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-393216, 655360, 2, -327680, 655360, 3, -262144, 655360, 3, -196608, 655360, 3, -131072, 655360, 3, -65536, 655360, 3, -393215, 720896, 2, -327679, 720896, 1, -262143, 720896, 1, -196607, 720896, 1, -131071, 720896, 1, -65535, 720896, 1, -393214, 786432, 2, -327678, 786432, 3, -262142, 786432, 3, -196606, 786432, 3, -131070, 786432, 3, -65534, 786432, 3) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1, 393225, 786432, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 458752, 1, 327681, 720896, 1, 393217, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 393218, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 393219, 720896, 1, 65540, 458752, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 393220, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 458752, 1, 327685, 720896, 1, 393221, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 393222, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 393223, 458752, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 458752, 1, 262152, 720896, 1, 327688, 720896, 1, 393224, 720896, 1, 65546, 524288, 5, 65547, 524288, 5, 65548, 524288, 5, 65549, 524288, 5, 131082, 524288, 6, 131083, 524288, 6, 131084, 524288, 6, 131085, 524288, 6, 196618, 720896, 1, 262154, 720896, 1, 196619, 720896, 1, 262155, 720896, 1, 196620, 720896, 1, 262156, 720896, 1, 196621, 720896, 1, 262157, 720896, 1, 65550, 524288, 5, 65551, 524288, 5, 65552, 524288, 5, 131086, 524288, 6, 131087, 524288, 6, 131088, 524288, 6, 196622, 720896, 1, 196623, 720896, 1, 262159, 720896, 1, 262160, 720896, 1, 196624, 720896, 1, 262158, 720896, 1, 17, 720896, 4, 65553, 720896, 5, 131089, 720896, 5, 196625, 720896, 5, 262161, 720896, 5, 18, 786432, 4, 19, 786432, 4, 20, 786432, 4, 21, 786432, 4, 22, 786432, 4, 23, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 65555, 786432, 5, 131091, 589824, 6, 196627, 786432, 5, 262163, 786432, 5, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 655360, 6, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327697, 720896, 5, 393233, 720896, 5, 327698, 589824, 6, 393234, 786432, 5, 327699, 786432, 5, 393235, 786432, 5, 327700, 786432, 5, 393236, 786432, 5, 327701, 786432, 5, 393237, 786432, 5, 327702, 786432, 5, 393238, 786432, 5, 327703, 786432, 5, 393239, 786432, 5, -131062, 720896, 4, -131061, 786432, 4, -131060, 786432, 4, -65526, 720896, 6, -65525, 786432, 6, -65524, 786432, 6, -131056, 851968, 4, -65520, 851968, 6, -131059, 786432, 4, -131058, 786432, 4, -131057, 786432, 4, -65523, 786432, 6, -65522, 786432, 6, -65521, 786432, 6, -65536, 917504, 2, -65535, 983040, 2, -65534, 1048576, 2, -65533, 917504, 2, -65532, 983040, 2, -65531, 1048576, 2, -65530, 917504, 2, -65529, 983040, 2, -65528, 1048576, 2, 65535, 655360, 0, 131071, 655360, 1, 196607, 655360, 1, 262143, 655360, 1, 327679, 655360, 1, 393215, 655360, 1, 458751, 655360, 1, 524287, 655360, 1, 589823, 655360, 1, 0, 720896, 0, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 393216, 720896, 1, 458752, 720896, 1, 524288, 720896, 1, 524289, 720896, 1, 524290, 720896, 1, 524291, 720896, 1, 524292, 720896, 1, 524293, 720896, 1, 524294, 720896, 1, 524295, 720896, 1, 524296, 720896, 1, 524297, 786432, 1, 458761, 786432, 1, 458760, 720896, 1, 458759, 720896, 1, 458758, 458752, 1, 458757, 720896, 1, 458756, 720896, 1, 458755, 720896, 1, 458754, 720896, 1, 458753, 720896, 1, -262145, 851968, 4, -196609, 851968, 5, -131073, 851968, 5, -65537, 851968, 5, -1, 851968, 6, -262146, 786432, 4, -262147, 786432, 4, -196610, 589824, 6, -196611, 786432, 5, -6, 786432, 5, -5, 786432, 5, -4, 786432, 5, -3, 786432, 5, -2, 786432, 5, -65538, 786432, 5, -131074, 786432, 5, -131075, 786432, 5, -65539, 655360, 6, 65534, 851968, 5, 131070, 851968, 5, 196606, 851968, 5, 262142, 851968, 5, 327678, 851968, 5, 393214, 851968, 5, 458750, 851968, 5, 65533, 786432, 5, 65532, 786432, 5, 65531, 786432, 5, 65530, 786432, 5, 65529, 720896, 5, 131066, 786432, 5, 196602, 786432, 5, 262138, 786432, 5, 262139, 786432, 5, 327675, 786432, 5, 131068, 786432, 5, 131069, 786432, 5, 196605, 786432, 5, 262141, 786432, 5, 327677, 786432, 5, 393213, 786432, 5, 458749, 786432, 5, 393212, 786432, 5, 393211, 786432, 5, 458748, 786432, 5, 327676, 655360, 6, 262140, 786432, 5, 196604, 786432, 5, 131067, 786432, 5, 196603, 589824, 6, 458747, 786432, 5, 458746, 786432, 5, 393210, 786432, 5, 327674, 786432, 5, -7, 720896, 5, 131065, 720896, 5, 196601, 720896, 5, 262137, 720896, 5, 327673, 720896, 5, 393209, 720896, 5, 458745, 720896, 5, -327684, 720896, 3, -196594, 720896, 3, -196597, 720896, 3, -65518, 720896, 3, -65516, 720896, 3, -327686, 1048576, 5, -327685, 720896, 3, -196595, 917504, 6, -65514, 983040, 6, -327683, 983040, 5, -65513, 1048576, 5, -262151, 720896, 4, -196615, 720896, 5, -131079, 720896, 5, -65543, 720896, 5, -262150, 786432, 4, -196614, 655360, 6, -131078, 786432, 5, -65542, 786432, 5, -262149, 786432, 4, -196613, 786432, 5, -131077, 786432, 5, -65541, 786432, 5, -262148, 786432, 4, -196612, 786432, 5, -131076, 786432, 5, -65540, 786432, 5, 458769, 720896, 5, 524305, 720896, 6, 458775, 786432, 5, 458774, 786432, 5, 458773, 786432, 5, 458772, 786432, 5, 458771, 786432, 5, 458770, 786432, 5, 524306, 786432, 6, 524307, 786432, 6, 524308, 786432, 6, 524309, 786432, 6, 524310, 786432, 6, 524311, 786432, 6, 327690, 720896, 1, 393226, 720896, 1, 458762, 720896, 1, 524298, 720896, 1, 327691, 720896, 1, 393227, 720896, 1, 458763, 720896, 1, 524299, 720896, 1, 327692, 720896, 1, 393228, 720896, 1, 458764, 720896, 1, 524300, 720896, 1, 327693, 720896, 1, 393229, 720896, 1, 458765, 720896, 1, 524301, 720896, 1, 327694, 720896, 1, 393230, 720896, 1, 458766, 720896, 1, 524302, 720896, 1, 327695, 720896, 1, 393231, 720896, 1, 458767, 720896, 1, 524303, 720896, 1, 327696, 720896, 1, 393232, 720896, 1, 458768, 720896, 1, 524304, 720896, 1, 29, 851968, 4, 65565, 851968, 5, 131101, 851968, 5, 196637, 851968, 5, 262173, 851968, 5, 327709, 851968, 5, 393245, 851968, 5, 458781, 851968, 5, 524317, 851968, 6, -65511, 917504, 4, 24, 786432, 4, 25, 786432, 4, 26, 786432, 4, 27, 786432, 4, 28, 786432, 4, 65560, 786432, 5, 65561, 786432, 5, 65562, 786432, 5, 65563, 786432, 5, 65564, 786432, 5, 131100, 786432, 5, 196636, 589824, 6, 131099, 786432, 5, 131098, 786432, 5, 131097, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 393240, 786432, 5, 458776, 786432, 5, 524312, 786432, 6, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 393241, 786432, 5, 458777, 786432, 5, 524313, 786432, 6, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 393242, 655360, 6, 458778, 786432, 5, 524314, 786432, 6, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, 393243, 786432, 5, 458779, 786432, 5, 524315, 786432, 6, 262172, 786432, 5, 327708, 786432, 5, 393244, 786432, 5, 458780, 786432, 5, 524316, 786432, 6, -196593, 1048576, 6, -393182, 1048576, 6, -393185, 917504, 6, -393180, 983040, 6, -393184, 983040, 5, -65509, 720896, 3, -65510, 720896, 3, -393181, 720896, 3, -393183, 720896, 3, -65517, 720896, 3, -65515, 720896, 3, -327650, 720896, 4, -262114, 720896, 5, -196578, 720896, 5, -131042, 720896, 5, -65506, 720896, 5, -65498, 851968, 5, -131034, 851968, 5, -196570, 851968, 5, -327642, 851968, 4, -327649, 786432, 4, -327648, 786432, 4, -327647, 786432, 4, -327646, 786432, 4, -327645, 786432, 4, -327644, 786432, 4, -327643, 786432, 4, -262106, 851968, 5, -65499, 786432, 5, -131035, 786432, 5, -196571, 786432, 5, -262107, 786432, 5, -262108, 786432, 5, -262109, 786432, 5, -262110, 786432, 5, -262111, 786432, 5, -262112, 786432, 5, -262113, 786432, 5, -196577, 655360, 6, -131041, 786432, 5, -65505, 786432, 5, -65500, 655360, 6, -131036, 589824, 6, -196572, 786432, 5, -196573, 786432, 5, -196574, 786432, 5, -196575, 786432, 5, -196576, 786432, 5, -131040, 589824, 6, -65504, 786432, 5, -65501, 786432, 5, -131037, 786432, 5, -131038, 786432, 5, -131039, 786432, 5, -65503, 786432, 5, -65502, 786432, 5, 524318, 720896, 6, 458782, 720896, 5, 393246, 720896, 5, 327710, 720896, 5, 262174, 720896, 5, 196638, 720896, 5, 131102, 720896, 5, 65566, 720896, 5, 30, 720896, 5, 524319, 786432, 6, 524320, 786432, 6, 524321, 786432, 6, 524322, 786432, 6, 524323, 786432, 6, 524324, 786432, 6, 524325, 786432, 6, 524326, 851968, 6, 38, 851968, 5, 65574, 851968, 5, 131110, 851968, 5, 196646, 851968, 5, 262182, 851968, 5, 327718, 851968, 5, 393254, 851968, 5, 458790, 851968, 5, 31, 786432, 5, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 393247, 655360, 6, 458783, 786432, 5, 32, 786432, 5, 65568, 786432, 5, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 393248, 786432, 5, 458784, 786432, 5, 33, 786432, 5, 65569, 786432, 5, 131105, 655360, 6, 196641, 786432, 5, 262177, 786432, 5, 327713, 786432, 5, 393249, 786432, 5, 458785, 786432, 5, 34, 786432, 5, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 655360, 6, 327714, 655360, 6, 393250, 786432, 5, 458786, 786432, 5, 35, 786432, 5, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 393251, 786432, 5, 458787, 786432, 5, 36, 655360, 6, 65572, 786432, 5, 131108, 786432, 5, 196644, 786432, 5, 262180, 786432, 5, 327716, 786432, 5, 393252, 786432, 5, 458788, 655360, 6, 37, 786432, 5, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 786432, 5, 327717, 786432, 5, 393253, 786432, 5, 458789, 786432, 5, 524282, 786432, 5, 524283, 786432, 5, 524284, 786432, 5, 524285, 786432, 5, 524281, 720896, 5, 524286, 851968, 5, 589817, 720896, 6, 589818, 786432, 6, 589819, 786432, 6, 589820, 786432, 6, 589821, 786432, 6, 589822, 851968, 6, -196596, 917504, 0) +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_nawqc") +collision_enabled = false +navigation_enabled = false + +[node name="Terrain" type="TileMapLayer" parent="."] +use_parent_material = true +scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACA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AAKAAYAAAAiAAUAAAAKAAYAAAAiAAYAAAAMAAUAAAAiAAcAAAAMAAUAAAAjAAAAAAAMAAUAAAAjAAEAAAAMAAUAAAAjAAIAAAAMAAUAAAAjAAMAAAAMAAUAAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAjAAYAAAAMAAUAAAAjAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") +tile_set = SubResource("TileSet_nawqc") [node name="UI" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("7_fdx1s")] +[node name="UIInventory" parent="UI" instance=ExtResource("2_kmt5y")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("6_kqt1v")] +[node name="UISign" parent="UI" instance=ExtResource("3_1cmgi")] unique_name_in_owner = true visible = false @@ -206,11 +210,12 @@ offset_top = -145.0 offset_right = 332.0 offset_bottom = -81.0 theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("12_k4p0h") +theme_override_fonts/font = ExtResource("4_4dx73") text = "[WASD] to move [Space] to jump" [node name="Camera2D" type="Camera2D" parent="."] +physics_interpolation_mode = 1 position = Vector2(227, -28) zoom = Vector2(1.5, 1.5) process_callback = 0 @@ -219,7 +224,7 @@ editor_draw_limits = true [node name="PhantomCameraHost" type="Node" parent="Camera2D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("4_54fc4") +script = ExtResource("5_gcww2") [node name="Player" type="Node" parent="."] @@ -228,18 +233,17 @@ unique_name_in_owner = true process_priority = -1 top_level = true position = Vector2(227, -28) -script = ExtResource("2_mgsut") +script = ExtResource("6_i3g4f") priority = 10 follow_mode = 2 -follow_target = NodePath("../CharacterBody2D/PlayerVisuals") +follow_target = NodePath("../CharacterBody2D") zoom = Vector2(1.5, 1.5) frame_preview = false -tween_resource = ExtResource("6_pxbym") +tween_resource = ExtResource("7_j2i8l") tween_on_load = false follow_damping = true draw_limits = true -[node name="CharacterBody2D" parent="Player" instance=ExtResource("7_62i3t")] +[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_ytjsp")] position = Vector2(227, -28) - -[editable path="Player/CharacterBody2D"] +script = ExtResource("9_o4c4h") diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_framed_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_framed_example_scene.tscn index 98a54c2..9b9cc88 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_framed_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_framed_example_scene.tscn @@ -1,16 +1,17 @@ -[gd_scene load_steps=11 format=3 uid="uid://bxtsl6qlpq1ar"] +[gd_scene load_steps=12 format=4 uid="uid://dg1tuoxd3b4tw"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_27o77"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_1tbys"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_1kfnp"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_mylkx"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_lwx5e"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_tju6r"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="8_bo8m7"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_wlikg"] +[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_nf5bo"] +[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_5oggv"] +[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_aku7q"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_j3ux0"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_uwr6r"] +[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_4l0c3"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_briql"] +[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_i4m1d"] +[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_m3lnd"] -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("1_27o77") +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dpuou"] +texture = ExtResource("1_nf5bo") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -152,15 +153,15 @@ texture = ExtResource("1_27o77") 15:6/0 = 0 16:6/0 = 0 -[sub_resource type="TileSet" id="TileSet_kf7eg"] +[sub_resource type="TileSet" id="TileSet_kxirl"] 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_easgx") +sources/0 = SubResource("TileSetAtlasSource_dpuou") -[node name="ExampleScene2D" type="Node2D"] +[node name="Root" type="Node2D"] [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -179,52 +180,58 @@ grow_vertical = 2 localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="Pillar" type="TileMapLayer" parent="."] +use_parent_material = true scale = Vector2(3, 3) -tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-393216, 655360, 2, -327680, 655360, 3, -262144, 655360, 3, -196608, 655360, 3, -131072, 655360, 3, -65536, 655360, 3, -393215, 720896, 2, -327679, 720896, 1, -262143, 720896, 1, -196607, 720896, 1, -131071, 720896, 1, -65535, 720896, 1, -393214, 786432, 2, -327678, 786432, 3, -262142, 786432, 3, -196606, 786432, 3, -131070, 786432, 3, -65534, 786432, 3) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1, 393225, 786432, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 458752, 1, 327681, 720896, 1, 393217, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 393218, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 393219, 720896, 1, 65540, 458752, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 393220, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 458752, 1, 327685, 720896, 1, 393221, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 393222, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 393223, 458752, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 458752, 1, 262152, 720896, 1, 327688, 720896, 1, 393224, 720896, 1, 65546, 524288, 5, 65547, 524288, 5, 65548, 524288, 5, 65549, 524288, 5, 131082, 524288, 6, 131083, 524288, 6, 131084, 524288, 6, 131085, 524288, 6, 196618, 720896, 1, 262154, 720896, 1, 196619, 720896, 1, 262155, 720896, 1, 196620, 720896, 1, 262156, 720896, 1, 196621, 720896, 1, 262157, 720896, 1, 65550, 524288, 5, 65551, 524288, 5, 65552, 524288, 5, 131086, 524288, 6, 131087, 524288, 6, 131088, 524288, 6, 196622, 720896, 1, 196623, 720896, 1, 262159, 720896, 1, 262160, 720896, 1, 196624, 720896, 1, 262158, 720896, 1, 17, 720896, 4, 65553, 720896, 5, 131089, 720896, 5, 196625, 720896, 5, 262161, 720896, 5, 18, 786432, 4, 19, 786432, 4, 20, 786432, 4, 21, 786432, 4, 22, 786432, 4, 23, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 65555, 786432, 5, 131091, 589824, 6, 196627, 786432, 5, 262163, 786432, 5, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 655360, 6, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327697, 720896, 5, 393233, 720896, 5, 327698, 589824, 6, 393234, 786432, 5, 327699, 786432, 5, 393235, 786432, 5, 327700, 786432, 5, 393236, 786432, 5, 327701, 786432, 5, 393237, 786432, 5, 327702, 786432, 5, 393238, 786432, 5, 327703, 786432, 5, 393239, 786432, 5, -131062, 720896, 4, -131061, 786432, 4, -131060, 786432, 4, -65526, 720896, 6, -65525, 786432, 6, -65524, 786432, 6, -131056, 851968, 4, -65520, 851968, 6, -131059, 786432, 4, -131058, 786432, 4, -131057, 786432, 4, -65523, 786432, 6, -65522, 786432, 6, -65521, 786432, 6, -196596, 917504, 0, -65536, 917504, 2, -65535, 983040, 2, -65534, 1048576, 2, -65533, 917504, 2, -65532, 983040, 2, -65531, 1048576, 2, -65530, 917504, 2, -65529, 983040, 2, -65528, 1048576, 2, 65535, 655360, 0, 131071, 655360, 1, 196607, 655360, 1, 262143, 655360, 1, 327679, 655360, 1, 393215, 655360, 1, 458751, 655360, 1, 524287, 655360, 1, 589823, 655360, 1, 0, 720896, 0, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 393216, 720896, 1, 458752, 720896, 1, 524288, 720896, 1, 524289, 720896, 1, 524290, 720896, 1, 524291, 720896, 1, 524292, 720896, 1, 524293, 720896, 1, 524294, 720896, 1, 524295, 720896, 1, 524296, 720896, 1, 524297, 786432, 1, 458761, 786432, 1, 458760, 720896, 1, 458759, 720896, 1, 458758, 458752, 1, 458757, 720896, 1, 458756, 720896, 1, 458755, 720896, 1, 458754, 720896, 1, 458753, 720896, 1, -262145, 851968, 4, -196609, 851968, 5, -131073, 851968, 5, -65537, 851968, 5, -1, 851968, 6, -262146, 786432, 4, -262147, 786432, 4, -196610, 589824, 6, -196611, 786432, 5, -6, 786432, 5, -5, 786432, 5, -4, 786432, 5, -3, 786432, 5, -2, 786432, 5, -65538, 786432, 5, -131074, 786432, 5, -131075, 786432, 5, -65539, 655360, 6, 65534, 851968, 5, 131070, 851968, 5, 196606, 851968, 5, 262142, 851968, 5, 327678, 851968, 5, 393214, 851968, 5, 458750, 851968, 5, 65533, 786432, 5, 65532, 786432, 5, 65531, 786432, 5, 65530, 786432, 5, 65529, 720896, 5, 131066, 786432, 5, 196602, 786432, 5, 262138, 786432, 5, 262139, 786432, 5, 327675, 786432, 5, 131068, 786432, 5, 131069, 786432, 5, 196605, 786432, 5, 262141, 786432, 5, 327677, 786432, 5, 393213, 786432, 5, 458749, 786432, 5, 393212, 786432, 5, 393211, 786432, 5, 458748, 786432, 5, 327676, 655360, 6, 262140, 786432, 5, 196604, 786432, 5, 131067, 786432, 5, 196603, 589824, 6, 458747, 786432, 5, 458746, 786432, 5, 393210, 786432, 5, 327674, 786432, 5, -7, 720896, 5, 131065, 720896, 5, 196601, 720896, 5, 262137, 720896, 5, 327673, 720896, 5, 393209, 720896, 5, 458745, 720896, 5, -327684, 720896, 3, -196594, 720896, 3, -196597, 720896, 3, -65518, 720896, 3, -65516, 720896, 3, -327686, 1048576, 5, -327685, 720896, 3, -196595, 917504, 6, -65514, 983040, 6, -327683, 983040, 5, -65513, 1048576, 5, -262151, 720896, 4, -196615, 720896, 5, -131079, 720896, 5, -65543, 720896, 5, -262150, 786432, 4, -196614, 655360, 6, -131078, 786432, 5, -65542, 786432, 5, -262149, 786432, 4, -196613, 786432, 5, -131077, 786432, 5, -65541, 786432, 5, -262148, 786432, 4, -196612, 786432, 5, -131076, 786432, 5, -65540, 786432, 5, 458769, 720896, 5, 524305, 720896, 6, 458775, 786432, 5, 458774, 786432, 5, 458773, 786432, 5, 458772, 786432, 5, 458771, 786432, 5, 458770, 786432, 5, 524306, 786432, 6, 524307, 786432, 6, 524308, 786432, 6, 524309, 786432, 6, 524310, 786432, 6, 524311, 786432, 6, 327690, 720896, 1, 393226, 720896, 1, 458762, 720896, 1, 524298, 720896, 1, 327691, 720896, 1, 393227, 720896, 1, 458763, 720896, 1, 524299, 720896, 1, 327692, 720896, 1, 393228, 720896, 1, 458764, 720896, 1, 524300, 720896, 1, 327693, 720896, 1, 393229, 720896, 1, 458765, 720896, 1, 524301, 720896, 1, 327694, 720896, 1, 393230, 720896, 1, 458766, 720896, 1, 524302, 720896, 1, 327695, 720896, 1, 393231, 720896, 1, 458767, 720896, 1, 524303, 720896, 1, 327696, 720896, 1, 393232, 720896, 1, 458768, 720896, 1, 524304, 720896, 1, 29, 851968, 4, 65565, 851968, 5, 131101, 851968, 5, 196637, 851968, 5, 262173, 851968, 5, 327709, 851968, 5, 393245, 851968, 5, 458781, 851968, 5, 524317, 851968, 6, -65511, 917504, 4, 24, 786432, 4, 25, 786432, 4, 26, 786432, 4, 27, 786432, 4, 28, 786432, 4, 65560, 786432, 5, 65561, 786432, 5, 65562, 786432, 5, 65563, 786432, 5, 65564, 786432, 5, 131100, 786432, 5, 196636, 589824, 6, 131099, 786432, 5, 131098, 786432, 5, 131097, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 393240, 786432, 5, 458776, 786432, 5, 524312, 786432, 6, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 393241, 786432, 5, 458777, 786432, 5, 524313, 786432, 6, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 393242, 655360, 6, 458778, 786432, 5, 524314, 786432, 6, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, 393243, 786432, 5, 458779, 786432, 5, 524315, 786432, 6, 262172, 786432, 5, 327708, 786432, 5, 393244, 786432, 5, 458780, 786432, 5, 524316, 786432, 6, -196593, 1048576, 6, -393182, 1048576, 6, -393185, 917504, 6, -393180, 983040, 6, -393184, 983040, 5, -65509, 720896, 3, -65510, 720896, 3, -393181, 720896, 3, -393183, 720896, 3, -65517, 720896, 3, -65515, 720896, 3, -327650, 720896, 4, -262114, 720896, 5, -196578, 720896, 5, -131042, 720896, 5, -65506, 720896, 5, -65498, 851968, 5, -131034, 851968, 5, -196570, 851968, 5, -327642, 851968, 4, -327649, 786432, 4, -327648, 786432, 4, -327647, 786432, 4, -327646, 786432, 4, -327645, 786432, 4, -327644, 786432, 4, -327643, 786432, 4, -262106, 851968, 5, -65499, 786432, 5, -131035, 786432, 5, -196571, 786432, 5, -262107, 786432, 5, -262108, 786432, 5, -262109, 786432, 5, -262110, 786432, 5, -262111, 786432, 5, -262112, 786432, 5, -262113, 786432, 5, -196577, 655360, 6, -131041, 786432, 5, -65505, 786432, 5, -65500, 655360, 6, -131036, 589824, 6, -196572, 786432, 5, -196573, 786432, 5, -196574, 786432, 5, -196575, 786432, 5, -196576, 786432, 5, -131040, 589824, 6, -65504, 786432, 5, -65501, 786432, 5, -131037, 786432, 5, -131038, 786432, 5, -131039, 786432, 5, -65503, 786432, 5, -65502, 786432, 5, 524318, 720896, 6, 458782, 720896, 5, 393246, 720896, 5, 327710, 720896, 5, 262174, 720896, 5, 196638, 720896, 5, 131102, 720896, 5, 65566, 720896, 5, 30, 720896, 5, 524319, 786432, 6, 524320, 786432, 6, 524321, 786432, 6, 524322, 786432, 6, 524323, 786432, 6, 524324, 786432, 6, 524325, 786432, 6, 524326, 851968, 6, 38, 851968, 5, 65574, 851968, 5, 131110, 851968, 5, 196646, 851968, 5, 262182, 851968, 5, 327718, 851968, 5, 393254, 851968, 5, 458790, 851968, 5, 31, 786432, 5, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 393247, 655360, 6, 458783, 786432, 5, 32, 786432, 5, 65568, 786432, 5, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 393248, 786432, 5, 458784, 786432, 5, 33, 786432, 5, 65569, 786432, 5, 131105, 655360, 6, 196641, 786432, 5, 262177, 786432, 5, 327713, 786432, 5, 393249, 786432, 5, 458785, 786432, 5, 34, 786432, 5, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 655360, 6, 327714, 655360, 6, 393250, 786432, 5, 458786, 786432, 5, 35, 786432, 5, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 393251, 786432, 5, 458787, 786432, 5, 36, 655360, 6, 65572, 786432, 5, 131108, 786432, 5, 196644, 786432, 5, 262180, 786432, 5, 327716, 786432, 5, 393252, 786432, 5, 458788, 655360, 6, 37, 786432, 5, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 786432, 5, 327717, 786432, 5, 393253, 786432, 5, 458789, 786432, 5, 524282, 786432, 5, 524283, 786432, 5, 524284, 786432, 5, 524285, 786432, 5, 524281, 720896, 5, 524286, 851968, 5, 589817, 720896, 6, 589818, 786432, 6, 589819, 786432, 6, 589820, 786432, 6, 589821, 786432, 6, 589822, 851968, 6) +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_kxirl") +collision_enabled = false +navigation_enabled = false + +[node name="Terrain" type="TileMapLayer" parent="."] +use_parent_material = true +scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEAAAACAAMAAAALAAEAAAACAAQAAAALAAEAAAACAAUAAAALAAEAAAACAAYAAAALAAEAAAADAAEAAAALAAEAAAADAAIAAAALAAEAAAADAAMAAAALAAEAAAADAAQAAAALAAEAAAADAAUAAAALAAEAAAADAAYAAAALAAEAAAAEAAEAAAAHAAEAAAAEAAIAAAALAAEAAAAEAAMAAAALAAEAAAAEAAQAAAALAAEAAAAEAAUAAAALAAEAAAAEAAYAAAALAAEAAAAFAAEAAAALAAEAAAAFAAIAAAALAAEAAAAFAAMAAAALAAEAAAAFAAQAAAAHAAEAAAAFAAUAAAALAAEAAAAFAAYAAAALAAEAAAAGAAEAAAALAAEAAAAGAAIAAAALAAEAAAAGAAMAAAALAAEAAAAGAAQAAAALAAEAAAAGAAUAAAALAAEAAAAGAAYAAAALAAEAAAAHAAEAAAALAAEAAAAHAAIAAAALAAEAAAAHAAMAAAALAAEAAAAHAAQAAAALAAEAAAAHAAUAAAALAAEAAAAHAAYAAAAHAAEAAAAIAAEAAAALAAEAAAAIAAIAAAALAAEAAAAIAAMAAAAHAAEAAAAIAAQAAAALAAEAAAAIAAUAAAALAAEAAAAIAAYAAAALAAEAAAAKAAEAAAAIAAUAAAALAAEAAAAIAAUAAAAMAAEAAA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" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("2_1tbys")] +[node name="UIInventory" parent="UI" instance=ExtResource("2_5oggv")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("3_1kfnp")] +[node name="UISign" parent="UI" instance=ExtResource("3_aku7q")] unique_name_in_owner = true visible = false [node name="Camera2D" type="Camera2D" parent="."] -position = Vector2(282, -29) +physics_interpolation_mode = 1 +position = Vector2(215, -73) zoom = Vector2(2, 2) process_callback = 0 +editor_draw_limits = true [node name="PhantomCameraHost" type="Node" parent="Camera2D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("4_mylkx") +script = ExtResource("4_j3ux0") [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(282, -29) -script = ExtResource("5_lwx5e") +position = Vector2(215, -73) +script = ExtResource("5_uwr6r") priority = 5 follow_mode = 5 -follow_target = NodePath("../CharacterBody2D/PlayerVisuals") +follow_target = NodePath("../CharacterBody2D") zoom = Vector2(2, 2) -tween_resource = ExtResource("6_tju6r") +tween_resource = ExtResource("6_4l0c3") tween_on_load = false +follow_offset = Vector2(0, -45) follow_damping = true -dead_zone_width = 0.4 +dead_zone_width = 0.25 dead_zone_height = 0.8 show_viewfinder_in_play = true draw_limits = true @@ -235,11 +242,10 @@ offset_top = -145.0 offset_right = 332.0 offset_bottom = -81.0 theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("8_bo8m7") +theme_override_fonts/font = ExtResource("7_briql") text = "[WASD] to move [Space] to jump" -[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_wlikg")] -position = Vector2(282, -29) - -[editable path="Player/CharacterBody2D"] +[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_i4m1d")] +position = Vector2(215, -28) +script = ExtResource("9_m3lnd") diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_group_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_group_example_scene.tscn index ba1e261..0efde25 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_group_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_group_example_scene.tscn @@ -1,17 +1,18 @@ -[gd_scene load_steps=13 format=3 uid="uid://brrncnp26lrco"] +[gd_scene load_steps=14 format=4 uid="uid://bio6mao7gtru2"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_5kqbp"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_xmntp"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_8dojy"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_2efwt"] -[ext_resource type="Texture2D" uid="uid://cwep0on2tthn7" path="res://addons/phantom_camera/examples/textures/2D/phantom_camera_2d_sprite.png" id="5_0v2cd"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_diuy4"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="7_ybwrw"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="9_wk0p3"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="12_uvcwb"] +[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_8rflf"] +[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_tafwr"] +[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_37c7w"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_dxiro"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="5_gaaip"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_ojk83"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="7_awenl"] +[ext_resource type="Texture2D" uid="uid://cwep0on2tthn7" path="res://addons/phantom_camera/examples/textures/2D/phantom_camera_2d_sprite.png" id="8_ys0m4"] +[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="9_witv0"] +[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="10_aivri"] -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("1_5kqbp") +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3qxnm"] +texture = ExtResource("1_8rflf") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -153,21 +154,20 @@ texture = ExtResource("1_5kqbp") 15:6/0 = 0 16:6/0 = 0 -[sub_resource type="TileSet" id="TileSet_kf7eg"] +[sub_resource type="TileSet" id="TileSet_14yng"] 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_easgx") +sources/0 = SubResource("TileSetAtlasSource_3qxnm") [sub_resource type="Resource" id="Resource_spy00"] -script = ExtResource("9_wk0p3") +script = ExtResource("7_awenl") duration = 0.3 transition = 4 -ease = 2 -[node name="ExampleScene2D" type="Node2D"] +[node name="Root" type="Node2D"] [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -186,36 +186,42 @@ grow_vertical = 2 localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="Pillar" type="TileMapLayer" parent="."] +use_parent_material = true scale = Vector2(3, 3) -tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-393216, 655360, 2, -327680, 655360, 3, -262144, 655360, 3, -196608, 655360, 3, -131072, 655360, 3, -65536, 655360, 3, -393215, 720896, 2, -327679, 720896, 1, -262143, 720896, 1, -196607, 720896, 1, -131071, 720896, 1, -65535, 720896, 1, -393214, 786432, 2, -327678, 786432, 3, -262142, 786432, 3, -196606, 786432, 3, -131070, 786432, 3, -65534, 786432, 3) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1, 393225, 786432, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 458752, 1, 327681, 720896, 1, 393217, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 393218, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 393219, 720896, 1, 65540, 458752, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 393220, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 458752, 1, 327685, 720896, 1, 393221, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 393222, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 393223, 458752, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 458752, 1, 262152, 720896, 1, 327688, 720896, 1, 393224, 720896, 1, 65546, 524288, 5, 65547, 524288, 5, 65548, 524288, 5, 65549, 524288, 5, 131082, 524288, 6, 131083, 524288, 6, 131084, 524288, 6, 131085, 524288, 6, 196618, 720896, 1, 262154, 720896, 1, 196619, 720896, 1, 262155, 720896, 1, 196620, 720896, 1, 262156, 720896, 1, 196621, 720896, 1, 262157, 720896, 1, 65550, 524288, 5, 65551, 524288, 5, 65552, 524288, 5, 131086, 524288, 6, 131087, 524288, 6, 131088, 524288, 6, 196622, 720896, 1, 196623, 720896, 1, 262159, 720896, 1, 262160, 720896, 1, 196624, 720896, 1, 262158, 720896, 1, 17, 720896, 4, 65553, 720896, 5, 131089, 720896, 5, 196625, 720896, 5, 262161, 720896, 5, 18, 786432, 4, 19, 786432, 4, 20, 786432, 4, 21, 786432, 4, 22, 786432, 4, 23, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 65555, 786432, 5, 131091, 589824, 6, 196627, 786432, 5, 262163, 786432, 5, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 655360, 6, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327697, 720896, 5, 393233, 720896, 5, 327698, 589824, 6, 393234, 786432, 5, 327699, 786432, 5, 393235, 786432, 5, 327700, 786432, 5, 393236, 786432, 5, 327701, 786432, 5, 393237, 786432, 5, 327702, 786432, 5, 393238, 786432, 5, 327703, 786432, 5, 393239, 786432, 5, -131062, 720896, 4, -131061, 786432, 4, -131060, 786432, 4, -65526, 720896, 6, -65525, 786432, 6, -65524, 786432, 6, -131056, 851968, 4, -65520, 851968, 6, -131059, 786432, 4, -131058, 786432, 4, -131057, 786432, 4, -65523, 786432, 6, -65522, 786432, 6, -65521, 786432, 6, -196596, 917504, 0, -65536, 917504, 2, -65535, 983040, 2, -65534, 1048576, 2, -65533, 917504, 2, -65532, 983040, 2, -65531, 1048576, 2, -65530, 917504, 2, -65529, 983040, 2, -65528, 1048576, 2, 65535, 655360, 0, 131071, 655360, 1, 196607, 655360, 1, 262143, 655360, 1, 327679, 655360, 1, 393215, 655360, 1, 458751, 655360, 1, 524287, 655360, 1, 589823, 655360, 1, 0, 720896, 0, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 393216, 720896, 1, 458752, 720896, 1, 524288, 720896, 1, 524289, 720896, 1, 524290, 720896, 1, 524291, 720896, 1, 524292, 720896, 1, 524293, 720896, 1, 524294, 720896, 1, 524295, 720896, 1, 524296, 720896, 1, 524297, 786432, 1, 458761, 786432, 1, 458760, 720896, 1, 458759, 720896, 1, 458758, 458752, 1, 458757, 720896, 1, 458756, 720896, 1, 458755, 720896, 1, 458754, 720896, 1, 458753, 720896, 1, -262145, 851968, 4, -196609, 851968, 5, -131073, 851968, 5, -65537, 851968, 5, -1, 851968, 6, -262146, 786432, 4, -262147, 786432, 4, -196610, 589824, 6, -196611, 786432, 5, -6, 786432, 5, -5, 786432, 5, -4, 786432, 5, -3, 786432, 5, -2, 786432, 5, -65538, 786432, 5, -131074, 786432, 5, -131075, 786432, 5, -65539, 655360, 6, 65534, 851968, 5, 131070, 851968, 5, 196606, 851968, 5, 262142, 851968, 5, 327678, 851968, 5, 393214, 851968, 5, 458750, 851968, 5, 65533, 786432, 5, 65532, 786432, 5, 65531, 786432, 5, 65530, 786432, 5, 65529, 720896, 5, 131066, 786432, 5, 196602, 786432, 5, 262138, 786432, 5, 262139, 786432, 5, 327675, 786432, 5, 131068, 786432, 5, 131069, 786432, 5, 196605, 786432, 5, 262141, 786432, 5, 327677, 786432, 5, 393213, 786432, 5, 458749, 786432, 5, 393212, 786432, 5, 393211, 786432, 5, 458748, 786432, 5, 327676, 655360, 6, 262140, 786432, 5, 196604, 786432, 5, 131067, 786432, 5, 196603, 589824, 6, 458747, 786432, 5, 458746, 786432, 5, 393210, 786432, 5, 327674, 786432, 5, -7, 720896, 5, 131065, 720896, 5, 196601, 720896, 5, 262137, 720896, 5, 327673, 720896, 5, 393209, 720896, 5, 458745, 720896, 5, -327684, 720896, 3, -196594, 720896, 3, -196597, 720896, 3, -65518, 720896, 3, -65516, 720896, 3, -327686, 1048576, 5, -327685, 720896, 3, -196595, 917504, 6, -65514, 983040, 6, -327683, 983040, 5, -65513, 1048576, 5, -262151, 720896, 4, -196615, 720896, 5, -131079, 720896, 5, -65543, 720896, 5, -262150, 786432, 4, -196614, 655360, 6, -131078, 786432, 5, -65542, 786432, 5, -262149, 786432, 4, -196613, 786432, 5, -131077, 786432, 5, -65541, 786432, 5, -262148, 786432, 4, -196612, 786432, 5, -131076, 786432, 5, -65540, 786432, 5, 458769, 720896, 5, 524305, 720896, 6, 458775, 786432, 5, 458774, 786432, 5, 458773, 786432, 5, 458772, 786432, 5, 458771, 786432, 5, 458770, 786432, 5, 524306, 786432, 6, 524307, 786432, 6, 524308, 786432, 6, 524309, 786432, 6, 524310, 786432, 6, 524311, 786432, 6, 327690, 720896, 1, 393226, 720896, 1, 458762, 720896, 1, 524298, 720896, 1, 327691, 720896, 1, 393227, 720896, 1, 458763, 720896, 1, 524299, 720896, 1, 327692, 720896, 1, 393228, 720896, 1, 458764, 720896, 1, 524300, 720896, 1, 327693, 720896, 1, 393229, 720896, 1, 458765, 720896, 1, 524301, 720896, 1, 327694, 720896, 1, 393230, 720896, 1, 458766, 720896, 1, 524302, 720896, 1, 327695, 720896, 1, 393231, 720896, 1, 458767, 720896, 1, 524303, 720896, 1, 327696, 720896, 1, 393232, 720896, 1, 458768, 720896, 1, 524304, 720896, 1, 29, 851968, 4, 65565, 851968, 5, 131101, 851968, 5, 196637, 851968, 5, 262173, 851968, 5, 327709, 851968, 5, 393245, 851968, 5, 458781, 851968, 5, 524317, 851968, 6, -65511, 917504, 4, 24, 786432, 4, 25, 786432, 4, 26, 786432, 4, 27, 786432, 4, 28, 786432, 4, 65560, 786432, 5, 65561, 786432, 5, 65562, 786432, 5, 65563, 786432, 5, 65564, 786432, 5, 131100, 786432, 5, 196636, 589824, 6, 131099, 786432, 5, 131098, 786432, 5, 131097, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 393240, 786432, 5, 458776, 786432, 5, 524312, 786432, 6, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 393241, 786432, 5, 458777, 786432, 5, 524313, 786432, 6, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 393242, 655360, 6, 458778, 786432, 5, 524314, 786432, 6, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, 393243, 786432, 5, 458779, 786432, 5, 524315, 786432, 6, 262172, 786432, 5, 327708, 786432, 5, 393244, 786432, 5, 458780, 786432, 5, 524316, 786432, 6, -196593, 1048576, 6, -393182, 1048576, 6, -393185, 917504, 6, -393180, 983040, 6, -393184, 983040, 5, -65509, 720896, 3, -65510, 720896, 3, -393181, 720896, 3, -393183, 720896, 3, -65517, 720896, 3, -65515, 720896, 3, -327650, 720896, 4, -262114, 720896, 5, -196578, 720896, 5, -131042, 720896, 5, -65506, 720896, 5, -65498, 851968, 5, -131034, 851968, 5, -196570, 851968, 5, -327642, 851968, 4, -327649, 786432, 4, -327648, 786432, 4, -327647, 786432, 4, -327646, 786432, 4, -327645, 786432, 4, -327644, 786432, 4, -327643, 786432, 4, -262106, 851968, 5, -65499, 786432, 5, -131035, 786432, 5, -196571, 786432, 5, -262107, 786432, 5, -262108, 786432, 5, -262109, 786432, 5, -262110, 786432, 5, -262111, 786432, 5, -262112, 786432, 5, -262113, 786432, 5, -196577, 655360, 6, -131041, 786432, 5, -65505, 786432, 5, -65500, 655360, 6, -131036, 589824, 6, -196572, 786432, 5, -196573, 786432, 5, -196574, 786432, 5, -196575, 786432, 5, -196576, 786432, 5, -131040, 589824, 6, -65504, 786432, 5, -65501, 786432, 5, -131037, 786432, 5, -131038, 786432, 5, -131039, 786432, 5, -65503, 786432, 5, -65502, 786432, 5, 524318, 720896, 6, 458782, 720896, 5, 393246, 720896, 5, 327710, 720896, 5, 262174, 720896, 5, 196638, 720896, 5, 131102, 720896, 5, 65566, 720896, 5, 30, 720896, 5, 524319, 786432, 6, 524320, 786432, 6, 524321, 786432, 6, 524322, 786432, 6, 524323, 786432, 6, 524324, 786432, 6, 524325, 786432, 6, 524326, 851968, 6, 38, 851968, 5, 65574, 851968, 5, 131110, 851968, 5, 196646, 851968, 5, 262182, 851968, 5, 327718, 851968, 5, 393254, 851968, 5, 458790, 851968, 5, 31, 786432, 5, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 393247, 655360, 6, 458783, 786432, 5, 32, 786432, 5, 65568, 786432, 5, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 393248, 786432, 5, 458784, 786432, 5, 33, 786432, 5, 65569, 786432, 5, 131105, 655360, 6, 196641, 786432, 5, 262177, 786432, 5, 327713, 786432, 5, 393249, 786432, 5, 458785, 786432, 5, 34, 786432, 5, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 655360, 6, 327714, 655360, 6, 393250, 786432, 5, 458786, 786432, 5, 35, 786432, 5, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 393251, 786432, 5, 458787, 786432, 5, 36, 655360, 6, 65572, 786432, 5, 131108, 786432, 5, 196644, 786432, 5, 262180, 786432, 5, 327716, 786432, 5, 393252, 786432, 5, 458788, 655360, 6, 37, 786432, 5, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 786432, 5, 327717, 786432, 5, 393253, 786432, 5, 458789, 786432, 5) +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_14yng") +collision_enabled = false +navigation_enabled = false + +[node name="Terrain" type="TileMapLayer" parent="."] +use_parent_material = true +scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEAAAACAAMAAAALAAEAAAACAAQAAAALAAEAAAACAAUAAAALAAEAAAACAAYAAAALAAEAAAADAAEAAAALAAEAAAADAAIAAAALAAEAAAADAAMAAAAL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AAAAjAAQAAAAMAAUAAAAjAAUAAAAMAAUAAAAjAAYAAAAMAAUAAAAjAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") +tile_set = SubResource("TileSet_14yng") [node name="UI" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("2_xmntp")] +[node name="UIInventory" parent="UI" instance=ExtResource("2_tafwr")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("3_8dojy")] +[node name="UISign" parent="UI" instance=ExtResource("3_37c7w")] unique_name_in_owner = true visible = false [node name="Camera2D" type="Camera2D" parent="."] +physics_interpolation_mode = 1 position = Vector2(186, -172.5) zoom = Vector2(1.5, 1.5) +process_callback = 0 position_smoothing_speed = 8.0 +editor_draw_limits = true [node name="PhantomCameraHost" type="Node" parent="Camera2D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("4_2efwt") +script = ExtResource("4_dxiro") [node name="Label" type="Label" parent="."] offset_left = 167.0 @@ -223,17 +229,17 @@ offset_top = -133.0 offset_right = 332.0 offset_bottom = -69.0 theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("12_uvcwb") +theme_override_fonts/font = ExtResource("5_gaaip") text = "[WASD] to move [Space] to jump" [node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_targets")] top_level = true position = Vector2(186, -172.5) -script = ExtResource("6_diuy4") +script = ExtResource("6_ojk83") priority = 10 follow_mode = 3 -follow_targets = [NodePath("../GroupNPCSprite"), NodePath("../CharacterBody2D/PlayerVisuals")] +follow_targets = [NodePath("../CharacterBody2D"), NodePath("../GroupNPCSprite")] zoom = Vector2(1.5, 1.5) tween_resource = SubResource("Resource_spy00") tween_on_load = false @@ -247,9 +253,8 @@ draw_limits = true [node name="GroupNPCSprite" type="Sprite2D" parent="."] unique_name_in_owner = true position = Vector2(107, -316) -texture = ExtResource("5_0v2cd") +texture = ExtResource("8_ys0m4") -[node name="CharacterBody2D" parent="." instance=ExtResource("7_ybwrw")] +[node name="CharacterBody2D" parent="." instance=ExtResource("9_witv0")] position = Vector2(265, -29) - -[editable path="CharacterBody2D"] +script = ExtResource("10_aivri") diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_path_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_path_example_scene.tscn index b7ebc1c..60342a2 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_follow_path_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_follow_path_example_scene.tscn @@ -1,16 +1,17 @@ -[gd_scene load_steps=12 format=3 uid="uid://psbaaxnedqmq"] +[gd_scene load_steps=13 format=4 uid="uid://b75giavcvh1mv"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_17ngo"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_whpvu"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_rbo5b"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_yddet"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_x25dj"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_4vtmp"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="8_6pcaf"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_a2pel"] +[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_t003o"] +[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_4ncqd"] +[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_tpji3"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_w0rat"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="5_q77r4"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_y6hoa"] +[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="7_wd55r"] +[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_fy81j"] +[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="9_u6ygl"] -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("1_17ngo") +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_nivvc"] +texture = ExtResource("1_t003o") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -152,21 +153,21 @@ texture = ExtResource("1_17ngo") 15:6/0 = 0 16:6/0 = 0 -[sub_resource type="TileSet" id="TileSet_kf7eg"] +[sub_resource type="TileSet" id="TileSet_eyojy"] 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_easgx") +sources/0 = SubResource("TileSetAtlasSource_nivvc") [sub_resource type="Curve2D" id="Curve2D_usrhf"] _data = { -"points": PackedVector2Array(-96.4111, 42.3785, 0, 0, 222, 0, 0, 0, 0, 0, 1550, 0) +"points": PackedVector2Array(-96.4111, 42.3785, 0, 0, 222, 0, 0, 0, 0, 0, 1580.53, 0) } point_count = 2 -[node name="ExampleScene2D" type="Node2D"] +[node name="Root" type="Node2D"] [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -185,36 +186,41 @@ grow_vertical = 2 localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="Pillar" type="TileMapLayer" parent="."] +use_parent_material = true scale = Vector2(3, 3) -tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-393216, 655360, 2, -327680, 655360, 3, -262144, 655360, 3, -196608, 655360, 3, -131072, 655360, 3, -65536, 655360, 3, -393215, 720896, 2, -327679, 720896, 1, -262143, 720896, 1, -196607, 720896, 1, -131071, 720896, 1, -65535, 720896, 1, -393214, 786432, 2, -327678, 786432, 3, -262142, 786432, 3, -196606, 786432, 3, -131070, 786432, 3, -65534, 786432, 3) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1, 393225, 786432, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 458752, 1, 327681, 720896, 1, 393217, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 393218, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 393219, 720896, 1, 65540, 458752, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 393220, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 458752, 1, 327685, 720896, 1, 393221, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 393222, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 393223, 458752, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 458752, 1, 262152, 720896, 1, 327688, 720896, 1, 393224, 720896, 1, 65546, 524288, 5, 65547, 524288, 5, 65548, 524288, 5, 65549, 524288, 5, 131082, 524288, 6, 131083, 524288, 6, 131084, 524288, 6, 131085, 524288, 6, 196618, 720896, 1, 262154, 720896, 1, 196619, 720896, 1, 262155, 720896, 1, 196620, 720896, 1, 262156, 720896, 1, 196621, 720896, 1, 262157, 720896, 1, 65550, 524288, 5, 65551, 524288, 5, 65552, 524288, 5, 131086, 524288, 6, 131087, 524288, 6, 131088, 524288, 6, 196622, 720896, 1, 196623, 720896, 1, 262159, 720896, 1, 262160, 720896, 1, 196624, 720896, 1, 262158, 720896, 1, 17, 720896, 4, 65553, 720896, 5, 131089, 720896, 5, 196625, 720896, 5, 262161, 720896, 5, 18, 786432, 4, 19, 786432, 4, 20, 786432, 4, 21, 786432, 4, 22, 786432, 4, 23, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 65555, 786432, 5, 131091, 589824, 6, 196627, 786432, 5, 262163, 786432, 5, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 655360, 6, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327697, 720896, 5, 393233, 720896, 5, 327698, 589824, 6, 393234, 786432, 5, 327699, 786432, 5, 393235, 786432, 5, 327700, 786432, 5, 393236, 786432, 5, 327701, 786432, 5, 393237, 786432, 5, 327702, 786432, 5, 393238, 786432, 5, 327703, 786432, 5, 393239, 786432, 5, -131062, 720896, 4, -131061, 786432, 4, -131060, 786432, 4, -65526, 720896, 6, -65525, 786432, 6, -65524, 786432, 6, -131056, 851968, 4, -65520, 851968, 6, -131059, 786432, 4, -131058, 786432, 4, -131057, 786432, 4, -65523, 786432, 6, -65522, 786432, 6, -65521, 786432, 6, -65536, 917504, 2, -65535, 983040, 2, -65534, 1048576, 2, -65533, 917504, 2, -65532, 983040, 2, -65531, 1048576, 2, -65530, 917504, 2, -65529, 983040, 2, -65528, 1048576, 2, 65535, 655360, 0, 131071, 655360, 1, 196607, 655360, 1, 262143, 655360, 1, 327679, 655360, 1, 393215, 655360, 1, 458751, 655360, 1, 524287, 655360, 1, 589823, 655360, 1, 0, 720896, 0, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 393216, 720896, 1, 458752, 720896, 1, 524288, 720896, 1, 524289, 720896, 1, 524290, 720896, 1, 524291, 720896, 1, 524292, 720896, 1, 524293, 720896, 1, 524294, 720896, 1, 524295, 720896, 1, 524296, 720896, 1, 524297, 786432, 1, 458761, 786432, 1, 458760, 720896, 1, 458759, 720896, 1, 458758, 458752, 1, 458757, 720896, 1, 458756, 720896, 1, 458755, 720896, 1, 458754, 720896, 1, 458753, 720896, 1, -262145, 851968, 4, -196609, 851968, 5, -131073, 851968, 5, -65537, 851968, 5, -1, 851968, 6, -262146, 786432, 4, -262147, 786432, 4, -196610, 589824, 6, -196611, 786432, 5, -6, 786432, 5, -5, 786432, 5, -4, 786432, 5, -3, 786432, 5, -2, 786432, 5, -65538, 786432, 5, -131074, 786432, 5, -131075, 786432, 5, -65539, 655360, 6, 65534, 851968, 5, 131070, 851968, 5, 196606, 851968, 5, 262142, 851968, 5, 327678, 851968, 5, 393214, 851968, 5, 458750, 851968, 5, 65533, 786432, 5, 65532, 786432, 5, 65531, 786432, 5, 65530, 786432, 5, 65529, 720896, 5, 131066, 786432, 5, 196602, 786432, 5, 262138, 786432, 5, 262139, 786432, 5, 327675, 786432, 5, 131068, 786432, 5, 131069, 786432, 5, 196605, 786432, 5, 262141, 786432, 5, 327677, 786432, 5, 393213, 786432, 5, 458749, 786432, 5, 393212, 786432, 5, 393211, 786432, 5, 458748, 786432, 5, 327676, 655360, 6, 262140, 786432, 5, 196604, 786432, 5, 131067, 786432, 5, 196603, 589824, 6, 458747, 786432, 5, 458746, 786432, 5, 393210, 786432, 5, 327674, 786432, 5, -7, 720896, 5, 131065, 720896, 5, 196601, 720896, 5, 262137, 720896, 5, 327673, 720896, 5, 393209, 720896, 5, 458745, 720896, 5, -327684, 720896, 3, -196594, 720896, 3, -196597, 720896, 3, -65518, 720896, 3, -65516, 720896, 3, -327686, 1048576, 5, -327685, 720896, 3, -196595, 917504, 6, -65514, 983040, 6, -327683, 983040, 5, -65513, 1048576, 5, -262151, 720896, 4, -196615, 720896, 5, -131079, 720896, 5, -65543, 720896, 5, -262150, 786432, 4, -196614, 655360, 6, -131078, 786432, 5, -65542, 786432, 5, -262149, 786432, 4, -196613, 786432, 5, -131077, 786432, 5, -65541, 786432, 5, -262148, 786432, 4, -196612, 786432, 5, -131076, 786432, 5, -65540, 786432, 5, 458769, 720896, 5, 524305, 720896, 6, 458775, 786432, 5, 458774, 786432, 5, 458773, 786432, 5, 458772, 786432, 5, 458771, 786432, 5, 458770, 786432, 5, 524306, 786432, 6, 524307, 786432, 6, 524308, 786432, 6, 524309, 786432, 6, 524310, 786432, 6, 524311, 786432, 6, 327690, 720896, 1, 393226, 720896, 1, 458762, 720896, 1, 524298, 720896, 1, 327691, 720896, 1, 393227, 720896, 1, 458763, 720896, 1, 524299, 720896, 1, 327692, 720896, 1, 393228, 720896, 1, 458764, 720896, 1, 524300, 720896, 1, 327693, 720896, 1, 393229, 720896, 1, 458765, 720896, 1, 524301, 720896, 1, 327694, 720896, 1, 393230, 720896, 1, 458766, 720896, 1, 524302, 720896, 1, 327695, 720896, 1, 393231, 720896, 1, 458767, 720896, 1, 524303, 720896, 1, 327696, 720896, 1, 393232, 720896, 1, 458768, 720896, 1, 524304, 720896, 1, 29, 851968, 4, 65565, 851968, 5, 131101, 851968, 5, 196637, 851968, 5, 262173, 851968, 5, 327709, 851968, 5, 393245, 851968, 5, 458781, 851968, 5, 524317, 851968, 6, 24, 786432, 4, 25, 786432, 4, 26, 786432, 4, 27, 786432, 4, 28, 786432, 4, 65560, 786432, 5, 65561, 786432, 5, 65562, 786432, 5, 65563, 786432, 5, 65564, 786432, 5, 131100, 786432, 5, 196636, 589824, 6, 131099, 786432, 5, 131098, 786432, 5, 131097, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 393240, 786432, 5, 458776, 786432, 5, 524312, 786432, 6, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 393241, 786432, 5, 458777, 786432, 5, 524313, 786432, 6, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 393242, 655360, 6, 458778, 786432, 5, 524314, 786432, 6, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, 393243, 786432, 5, 458779, 786432, 5, 524315, 786432, 6, 262172, 786432, 5, 327708, 786432, 5, 393244, 786432, 5, 458780, 786432, 5, 524316, 786432, 6, -196593, 1048576, 6, -65509, 720896, 3, -65510, 720896, 3, -65517, 720896, 3, -65515, 720896, 3, 524282, 786432, 5, 524283, 786432, 5, 524284, 786432, 5, 524285, 786432, 5, 524281, 720896, 5, 524286, 851968, 5, 589817, 720896, 6, 589818, 786432, 6, 589819, 786432, 6, 589820, 786432, 6, 589821, 786432, 6, 589822, 851968, 6, -196569, 720896, 4, -131033, 720896, 5, -65497, 720896, 5, 39, 720896, 5, 65575, 720896, 5, 131111, 720896, 5, 196647, 720896, 5, 262183, 720896, 5, 327719, 720896, 5, 393255, 720896, 5, 458791, 720896, 5, 524327, 720896, 5, 589863, 720896, 5, 655399, 720896, 6, -262104, 917504, 6, -196568, 786432, 4, -131032, 786432, 5, -65496, 655360, 6, 40, 786432, 5, 65576, 786432, 5, 131112, 786432, 5, 196648, 786432, 5, 262184, 786432, 5, 327720, 786432, 5, 393256, 786432, 5, 458792, 786432, 5, 524328, 655360, 6, 589864, 786432, 5, 655400, 786432, 6, -262103, 983040, 5, -196567, 786432, 4, -131031, 786432, 5, -65495, 786432, 5, 41, 589824, 6, 65577, 786432, 5, 131113, 786432, 5, 196649, 786432, 5, 262185, 786432, 5, 327721, 786432, 5, 393257, 786432, 5, 458793, 786432, 5, 524329, 786432, 5, 589865, 786432, 5, 655401, 786432, 6, -262102, 720896, 3, -196566, 786432, 4, -131030, 786432, 5, -65494, 786432, 5, 42, 786432, 5, 65578, 786432, 5, 131114, 786432, 5, 196650, 786432, 5, 262186, 655360, 6, 327722, 786432, 5, 393258, 786432, 5, 458794, 786432, 5, 524330, 786432, 5, 589866, 786432, 5, 655402, 786432, 6, -262101, 1048576, 6, -196565, 786432, 4, -131029, 786432, 5, -65493, 786432, 5, 43, 786432, 5, 65579, 786432, 5, 131115, 786432, 5, 196651, 786432, 5, 262187, 786432, 5, 327723, 786432, 5, 393259, 655360, 6, 458795, 655360, 6, 524331, 786432, 5, 589867, 786432, 5, 655403, 786432, 6, -262100, 720896, 3, -196564, 786432, 4, -131028, 786432, 5, -65492, 786432, 5, 44, 786432, 5, 65580, 786432, 5, 131116, 786432, 5, 196652, 786432, 5, 262188, 786432, 5, 327724, 786432, 5, 393260, 786432, 5, 458796, 786432, 5, 524332, 786432, 5, 589868, 786432, 5, 655404, 786432, 6, -262099, 983040, 6, -196563, 786432, 4, -131027, 786432, 5, -65491, 786432, 5, 45, 589824, 6, 65581, 655360, 6, 131117, 655360, 6, 196653, 786432, 5, 262189, 786432, 5, 327725, 786432, 5, 393261, 786432, 5, 458797, 786432, 5, 524333, 786432, 5, 589869, 655360, 6, 655405, 786432, 6, -196562, 786432, 4, -131026, 786432, 5, -65490, 786432, 5, 46, 786432, 5, 65582, 786432, 5, 131118, 786432, 5, 196654, 786432, 5, 262190, 786432, 5, 327726, 786432, 5, 393262, 786432, 5, 458798, 786432, 5, 524334, 786432, 5, 589870, 786432, 5, 655406, 786432, 6, -196561, 851968, 4, -131025, 851968, 5, -65489, 851968, 5, 47, 851968, 5, 65583, 851968, 5, 131119, 851968, 5, 196655, 851968, 5, 262191, 851968, 5, 327727, 851968, 5, 393263, 851968, 5, 458799, 851968, 5, 524335, 851968, 5, 589871, 851968, 5, 655407, 851968, 6, -131042, 720896, 4, -65506, 720896, 5, 30, 720896, 5, 65566, 720896, 5, 131102, 720896, 5, 196638, 720896, 5, 262174, 720896, 5, 327710, 720896, 5, 393246, 720896, 5, 458782, 720896, 5, 524318, 720896, 5, -196577, 917504, 6, -131041, 786432, 4, -65505, 786432, 5, 31, 655360, 6, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 393247, 786432, 5, 458783, 786432, 5, 524319, 786432, 5, -196576, 983040, 5, -131040, 786432, 4, -65504, 786432, 5, 32, 786432, 5, 65568, 589824, 6, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 393248, 786432, 5, 458784, 786432, 5, 524320, 786432, 5, -196575, 720896, 3, -131039, 786432, 4, -65503, 786432, 5, 33, 786432, 5, 65569, 786432, 5, 131105, 786432, 5, 196641, 786432, 5, 262177, 786432, 5, 327713, 655360, 6, 393249, 786432, 5, 458785, 786432, 5, 524321, 786432, 5, -196574, 1048576, 6, -131038, 786432, 4, -65502, 786432, 5, 34, 786432, 5, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 786432, 5, 327714, 786432, 5, 393250, 786432, 5, 458786, 655360, 6, 524322, 655360, 6, -196573, 720896, 3, -131037, 786432, 4, -65501, 786432, 5, 35, 786432, 5, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 393251, 786432, 5, 458787, 786432, 5, 524323, 786432, 5, -196572, 983040, 6, -131036, 786432, 4, -65500, 786432, 5, 36, 786432, 5, 65572, 589824, 6, 131108, 655360, 6, 196644, 655360, 6, 262180, 786432, 5, 327716, 786432, 5, 393252, 786432, 5, 458788, 786432, 5, 524324, 786432, 5, -131035, 786432, 4, -65499, 786432, 5, 37, 786432, 5, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 786432, 5, 327717, 786432, 5, 393253, 786432, 5, 458789, 786432, 5, 524325, 786432, 5, -131034, 851968, 4, -65498, 851968, 5, 38, 851968, 5, 65574, 851968, 5, 131110, 851968, 5, 196646, 851968, 5, 262182, 851968, 5, 327718, 851968, 5, 393254, 851968, 5, 458790, 851968, 5, 524326, 851968, 5, 589854, 720896, 5, 655390, 720896, 5, 720926, 720896, 6, 589855, 655360, 6, 655391, 786432, 5, 720927, 786432, 6, 589856, 786432, 5, 655392, 786432, 5, 720928, 786432, 6, 589857, 786432, 5, 655393, 786432, 5, 720929, 786432, 6, 589858, 786432, 5, 655394, 786432, 5, 720930, 786432, 6, 589859, 786432, 5, 655395, 786432, 5, 720931, 786432, 6, 589860, 786432, 5, 655396, 655360, 6, 720932, 786432, 6, 589861, 786432, 5, 655397, 786432, 5, 720933, 786432, 6, 589862, 851968, 5, 655398, 851968, 5, 720934, 851968, 6, -458704, 720896, 4, -393168, 720896, 5, -327632, 720896, 5, -262096, 720896, 5, -196560, 720896, 5, -131024, 720896, 5, -65488, 720896, 5, 48, 720896, 5, 65584, 720896, 5, 131120, 720896, 5, 196656, 720896, 5, 262192, 720896, 5, 327728, 720896, 5, 393264, 720896, 6, -524239, 917504, 6, -458703, 786432, 4, -393167, 786432, 5, -327631, 655360, 6, -262095, 786432, 5, -196559, 786432, 5, -131023, 786432, 5, -65487, 786432, 5, 49, 786432, 5, 65585, 786432, 5, 131121, 786432, 5, 196657, 786432, 5, 262193, 655360, 6, 327729, 786432, 5, 393265, 786432, 6, -524238, 983040, 5, -458702, 786432, 4, -393166, 786432, 5, -327630, 786432, 5, -262094, 589824, 6, -196558, 786432, 5, -131022, 786432, 5, -65486, 786432, 5, 50, 786432, 5, 65586, 786432, 5, 131122, 786432, 5, 196658, 786432, 5, 262194, 786432, 5, 327730, 786432, 5, 393266, 786432, 6, -524237, 720896, 3, -458701, 786432, 4, -393165, 786432, 5, -327629, 786432, 5, -262093, 786432, 5, -196557, 786432, 5, -131021, 786432, 5, -65485, 786432, 5, 51, 655360, 6, 65587, 786432, 5, 131123, 786432, 5, 196659, 786432, 5, 262195, 786432, 5, 327731, 786432, 5, 393267, 786432, 6, -524236, 1048576, 6, -458700, 786432, 4, -393164, 786432, 5, -327628, 786432, 5, -262092, 786432, 5, -196556, 786432, 5, -131020, 786432, 5, -65484, 786432, 5, 52, 786432, 5, 65588, 786432, 5, 131124, 655360, 6, 196660, 655360, 6, 262196, 786432, 5, 327732, 786432, 5, 393268, 786432, 6, -524235, 720896, 3, -458699, 786432, 4, -393163, 786432, 5, -327627, 786432, 5, -262091, 786432, 5, -196555, 786432, 5, -131019, 786432, 5, -65483, 786432, 5, 53, 786432, 5, 65589, 786432, 5, 131125, 786432, 5, 196661, 786432, 5, 262197, 786432, 5, 327733, 786432, 5, 393269, 786432, 6, -524234, 983040, 6, -458698, 786432, 4, -393162, 786432, 5, -327626, 786432, 5, -262090, 589824, 6, -196554, 655360, 6, -131018, 655360, 6, -65482, 786432, 5, 54, 786432, 5, 65590, 786432, 5, 131126, 786432, 5, 196662, 786432, 5, 262198, 786432, 5, 327734, 655360, 6, 393270, 786432, 6, -458697, 786432, 4, -393161, 786432, 5, -327625, 786432, 5, -262089, 786432, 5, -196553, 786432, 5, -131017, 786432, 5, -65481, 786432, 5, 55, 786432, 5, 65591, 786432, 5, 131127, 786432, 5, 196663, 786432, 5, 262199, 786432, 5, 327735, 786432, 5, 393271, 786432, 6, -458696, 851968, 4, -393160, 851968, 5, -327624, 851968, 5, -262088, 851968, 5, -196552, 851968, 5, -131016, 851968, 5, -65480, 851968, 5, 56, 851968, 5, 65592, 851968, 5, 131128, 851968, 5, 196664, 851968, 5, 262200, 851968, 5, 327736, 851968, 5, 393272, 851968, 6) +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_eyojy") +collision_enabled = false +navigation_enabled = false + +[node name="Terrain" type="TileMapLayer" parent="."] +use_parent_material = true +scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAABAAAAAAALAAAAAAACAAA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AAtAP3/AAAMAAYAAAAuAPb/AAAMAAQAAAAuAPf/AAAMAAUAAAAuAPj/AAAMAAUAAAAuAPn/AAAMAAUAAAAuAPr/AAAMAAUAAAAuAPv/AAAMAAUAAAAuAPz/AAAMAAUAAAAuAP3/AAAMAAYAAAAvAPb/AAAMAAQAAAAvAPf/AAAMAAUAAAAvAPj/AAAMAAUAAAAvAPn/AAAMAAUAAAAvAPr/AAAMAAUAAAAvAPv/AAAMAAUAAAAvAPz/AAAMAAUAAAAvAP3/AAAMAAYAAAAwAPb/AAAMAAQAAAAwAPf/AAAMAAUAAAAwAPj/AAAMAAUAAAAwAPn/AAAMAAUAAAAwAPr/AAAMAAUAAAAwAPv/AAAMAAUAAAAwAPz/AAAMAAUAAAAwAP3/AAAMAAYAAAAxAPb/AAAMAAQAAAAxAPf/AAAMAAUAAAAxAPj/AAAMAAUAAAAxAPn/AAAMAAUAAAAxAPr/AAAMAAUAAAAxAPv/AAAMAAUAAAAxAPz/AAAMAAUAAAAxAP3/AAAMAAYAAAAyAPb/AAAMAAQAAAAyAPf/AAAMAAUAAAAyAPj/AAAMAAUAAAAyAPn/AAAMAAUAAAAyAPr/AAAMAAUAAAAyAPv/AAAMAAUAAAAyAPz/AAAMAAUAAAAyAP3/AAAMAAUAAAArAP7/AAANAAQAAAArAP//AAANAAUAAAArAAAAAAANAAUAAAArAAEAAAANAAUAAAArAAIAAAANAAUAAAArAAMAAAANAAUAAAArAAQAAAANAAUAAAArAAUAAAANAAUAAAArAAYAAAANAAUAAAArAAcAAAANAAUAAAArAAgAAAANAAUAAAArAAkAAAANAAUAAAArAAoAAAANAAUAAAArAAsAAAANAAYAAAA=") +tile_set = SubResource("TileSet_eyojy") [node name="UI" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("2_whpvu")] +[node name="UIInventory" parent="UI" instance=ExtResource("2_4ncqd")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("3_rbo5b")] +[node name="UISign" parent="UI" instance=ExtResource("3_tpji3")] unique_name_in_owner = true visible = false [node name="Camera2D" type="Camera2D" parent="."] -position = Vector2(374, -216) +physics_interpolation_mode = 1 +position = Vector2(374, -190) zoom = Vector2(1.5, 1.5) process_callback = 0 +editor_draw_limits = true [node name="PhantomCameraHost" type="Node" parent="Camera2D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("4_yddet") +script = ExtResource("4_w0rat") [node name="Label" type="Label" parent="."] offset_left = 167.0 @@ -222,7 +228,7 @@ offset_top = -133.0 offset_right = 332.0 offset_bottom = -69.0 theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("8_6pcaf") +theme_override_fonts/font = ExtResource("5_q77r4") text = "[WASD] to move [Space] to jump" @@ -235,29 +241,29 @@ offset_top = -145.0 offset_right = 332.0 offset_bottom = -81.0 theme_override_colors/font_color = Color(0.294118, 1, 0.631373, 1) -theme_override_fonts/font = ExtResource("8_6pcaf") +theme_override_fonts/font = ExtResource("5_q77r4") text = "[WASD] to move [Space] to jump" [node name="PlayerPhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target", "follow_path")] unique_name_in_owner = true top_level = true -position = Vector2(374, -216) -script = ExtResource("5_x25dj") +position = Vector2(374, -190) +script = ExtResource("6_y6hoa") priority = 10 follow_mode = 4 -follow_target = NodePath("../CharacterBody2D/PlayerVisuals") +follow_target = NodePath("../CharacterBody2D") follow_path = NodePath("../Path2D") zoom = Vector2(1.5, 1.5) -tween_resource = ExtResource("6_4vtmp") +tween_resource = ExtResource("7_wd55r") tween_on_load = false +follow_damping = true draw_limits = true [node name="Path2D" type="Path2D" parent="."] -position = Vector2(152, -216) +position = Vector2(152, -190) curve = SubResource("Curve2D_usrhf") -[node name="CharacterBody2D" parent="." instance=ExtResource("8_a2pel")] +[node name="CharacterBody2D" parent="." instance=ExtResource("8_fy81j")] position = Vector2(225, -28) - -[editable path="CharacterBody2D"] +script = ExtResource("9_u6ygl") diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_limit_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_limit_example_scene.tscn index 7735ec6..9709f1f 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_limit_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_limit_example_scene.tscn @@ -1,16 +1,17 @@ -[gd_scene load_steps=16 format=3 uid="uid://w20wokw3ohsq"] +[gd_scene load_steps=17 format=4 uid="uid://0ox7hgdpwpqp"] -[ext_resource type="Script" uid="uid://c5yewe1hewu7j" path="res://addons/phantom_camera/examples/scripts/2D/2d_room_limit_tween.gd" id="1_ijqyv"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_wmhqb"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_v5qg2"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_oqmwp"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="4_4b648"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="5_pr2x5"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="9_twplb"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="9_w5e16"] +[ext_resource type="Script" uid="uid://dtcuvut1eklnd" path="res://addons/phantom_camera/examples/scripts/2D/2d_room_limit_tween_4.3.gd" id="1_bwr3f"] +[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="2_f03of"] +[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="3_cysy4"] +[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="4_qqut6"] +[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="5_yv8tn"] +[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_2n5r1"] +[ext_resource type="Script" uid="uid://cnnaky2ns2pn4" path="res://addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd" id="6_68ewj"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="7_ne05h"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="8_hulu3"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_easgx"] -texture = ExtResource("1_wmhqb") +texture = ExtResource("2_f03of") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -161,19 +162,17 @@ custom_data_layer_0/type = 21 sources/0 = SubResource("TileSetAtlasSource_easgx") [sub_resource type="Resource" id="Resource_ct1eh"] -script = ExtResource("9_twplb") +script = ExtResource("7_ne05h") duration = 0.9 transition = 2 -ease = 2 [sub_resource type="RectangleShape2D" id="RectangleShape2D_xmxri"] size = Vector2(790, 410) [sub_resource type="Resource" id="Resource_exr3j"] -script = ExtResource("9_twplb") +script = ExtResource("7_ne05h") duration = 0.9 transition = 2 -ease = 2 [sub_resource type="RectangleShape2D" id="RectangleShape2D_wtfjw"] size = Vector2(1530, 700) @@ -182,7 +181,7 @@ size = Vector2(1530, 700) size = Vector2(1027.5, 610.5) [node name="ExampleScene2D" type="Node2D"] -script = ExtResource("1_ijqyv") +script = ExtResource("1_bwr3f") [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -202,56 +201,51 @@ localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) metadata/_edit_lock_ = true -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="StartingTerrain" type="TileMapLayer" parent="."] +z_index = 1 +use_parent_material = true position = Vector2(-97, 0) scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAD9/wAAAAALAAAAAAD+/wAAAAALAAAAAAD//wAAAAALAAAAAAAAAAAAAAALAAAAAAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAD8/wAAAAALAAAAAAD7/wAAAAAKAAAAAAD7/wEAAAAKAAEAAAD7/wIAAAAKAAEAAAD7/wMAAAAKAAEAAAD7/wQAAAAKAAEAAAD7/wUAAAAKAAEAAAD8/wEAAAALAAEAAAD8/wIAAAALAAEAAAD8/wMAAAALAAEAAAD8/wQAAAALAAEAAAD8/wUAAAALAAEAAAD9/wEAAAALAAEAAAD9/wIAAAALAAEAAAD9/wMAAAALAAEAAAD9/wQAAAALAAEAAAD9/wUAAAALAAEAAAD+/wEAAAALAAEAAAD+/wIAAAALAAEAAAD+/wMAAAALAAEAAAD+/wQAAAALAAEAAAD+/wUAAAALAAEAAAD//wEAAAALAAEAAAD//wIAAAALAAEAAAD//wMAAAALAAEAAAD//wQAAAALAAEAAAD//wUAAAALAAEAAAAAAAEAAAALAAEAAAAAAAIAAAALAAEAAAAAAAMAAAALAAEAAAAAAAQAAAALAAEAAAAAAAUAAAALAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAALAAEAAAABAAUAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEAAAACAAMAAAAL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AQAAAAJAPX/AAANAAQAAAAJAPb/AAANAAUAAAAJAPf/AAANAAUAAAAJAPj/AAANAAUAAAAJAPn/AAANAAYAAAD8//b/AAAMAAUAAAD8//f/AAAMAAUAAAD8//j/AAAMAAUAAAD9//b/AAAMAAUAAAD9//f/AAAMAAUAAAD9//j/AAAMAAUAAAD+//b/AAAMAAUAAAD+//f/AAAMAAUAAAD+//j/AAAMAAUAAAD///b/AAAMAAUAAAD///f/AAAMAAUAAAD///j/AAAMAAUAAAAAAPb/AAAMAAUAAAAAAPf/AAAMAAUAAAAAAPj/AAAMAAUAAAABAPb/AAAMAAUAAAABAPf/AAAMAAUAAAABAPj/AAAMAAUAAAACAPb/AAAMAAUAAAACAPf/AAAMAAUAAAACAPj/AAAMAAUAAAADAPb/AAAMAAUAAAADAPf/AAAMAAUAAAADAPj/AAAMAAUAAAAEAPb/AAAMAAUAAAAEAPf/AAAMAAUAAAAEAPj/AAAMAAUAAAAFAPb/AAAMAAUAAAAFAPf/AAAMAAUAAAAFAPj/AAAMAAUAAAAGAPb/AAAMAAUAAAAGAPf/AAAMAAUAAAAGAPj/AAAMAAUAAAAHAPb/AAAMAAUAAAAHAPf/AAAMAAUAAAAHAPj/AAAMAAUAAAAIAPb/AAAMAAUAAAAIAPf/AAAMAAUAAAAIAPj/AAAMAAUAAAA=") tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-458743, 851968, 6, -458744, 786432, 6, -458745, 786432, 6, -458746, 786432, 6, -458747, 786432, 6, -458748, 786432, 6, -458749, 786432, 6, -458750, 786432, 6, -458751, 786432, 6, -393218, 786432, 6, -393219, 786432, 6, -393220, 786432, 6, -393221, 720896, 6, -458752, 786432, 6, -393217, 786432, 6, -524279, 851968, 5, -589815, 851968, 5, -655351, 851968, 5, -720887, 851968, 4, -720888, 786432, 4, -720889, 786432, 4, -720890, 786432, 4, -720891, 786432, 4, -720892, 786432, 4, -720893, 786432, 4, -720894, 786432, 4, -720895, 786432, 4, -720896, 786432, 4, -655361, 786432, 4, -655362, 786432, 4, -655363, 786432, 4, -655364, 786432, 4, -655365, 720896, 4, -589829, 720896, 5, -524293, 720896, 5, -458757, 720896, 5, -589828, 786432, 5, -524292, 786432, 5, -458756, 786432, 5, -589827, 786432, 5, -524291, 786432, 5, -458755, 786432, 5, -589826, 786432, 5, -524290, 786432, 5, -458754, 786432, 5, -589825, 786432, 5, -524289, 786432, 5, -458753, 786432, 5, -655360, 786432, 5, -589824, 786432, 5, -524288, 786432, 5, -655359, 786432, 5, -589823, 786432, 5, -524287, 786432, 5, -655358, 786432, 5, -589822, 786432, 5, -524286, 786432, 5, -655357, 786432, 5, -589821, 786432, 5, -524285, 786432, 5, -655356, 786432, 5, -589820, 786432, 5, -524284, 786432, 5, -655355, 786432, 5, -589819, 786432, 5, -524283, 786432, 5, -655354, 786432, 5, -589818, 786432, 5, -524282, 786432, 5, -655353, 786432, 5, -589817, 786432, 5, -524281, 786432, 5, -655352, 786432, 5, -589816, 786432, 5, -524280, 786432, 5) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(65533, 720896, 0, 65534, 720896, 0, 65535, 720896, 0, 0, 720896, 0, 1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65532, 720896, 0, 65531, 655360, 0, 131067, 655360, 1, 196603, 655360, 1, 262139, 655360, 1, 327675, 655360, 1, 393211, 655360, 1, 131068, 720896, 1, 196604, 720896, 1, 262140, 720896, 1, 327676, 720896, 1, 393212, 720896, 1, 131069, 720896, 1, 196605, 720896, 1, 262141, 720896, 1, 327677, 720896, 1, 393213, 720896, 1, 131070, 720896, 1, 196606, 720896, 1, 262142, 720896, 1, 327678, 720896, 1, 393214, 720896, 1, 131071, 720896, 1, 196607, 720896, 1, 262143, 720896, 1, 327679, 720896, 1, 393215, 720896, 1, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 720896, 1, 327681, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 65540, 720896, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 720896, 1, 327685, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 720896, 1, 262152, 720896, 1, 327688, 720896, 1, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1) -[node name="TileMap2" type="TileMap" parent="."] -z_index = -1 +[node name="OtherTerrain" type="TileMapLayer" parent="."] +z_index = 1 +use_parent_material = true scale = Vector2(3, 3) +tile_map_data = PackedByteArray("AAAIAAAAAAAMAAQAAAAJAAAAAAAMAAQAAAAKAAAAAAAMAAQAAAALAAAAAAAMAAQAAAAMAAAAAAAMAAQAAAANAAAAAAAMAAQAAAAOAAAAAAAMAAQAAAD4/wAAAAANAAUAAAD3/wAAAAAMAAUAAAD2/wAAAAAMAAUAAAD1/wAAAAAMAAUAAAD0/wAAAAAMAAUAAADz/wAAAAAMAAUAAAAIAAEAAAAMAAUAAAAIAAIAAAAMAAUAAAAIAAMAAAAMAAUAAAAIAAQAAAAMAAUAAAAJAAEAAAAMAAUAAAAJAAIAAAAMAAUAAAAJAAMAAAAMAAUAAAAJAAQAAAAMAAUAAAAKAAEAAAAMAAUAAAAKAAIAAAAMAAUAAAAKAAMAAA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//n/AAAMAAUAAADx//j/AAAMAAUAAADx//n/AAAMAAUAAADy//j/AAAMAAUAAADy//n/AAAMAAUAAADz//j/AAAMAAUAAADz//n/AAAMAAUAAAD0//j/AAAMAAUAAAD0//n/AAAMAAUAAAD1//j/AAAMAAUAAAD1//n/AAAMAAUAAAD2//j/AAAMAAUAAAD2//n/AAAMAAUAAAD3//j/AAAMAAUAAAD3//n/AAAMAAUAAAD4//j/AAANAAUAAAD4//n/AAANAAUAAADv//X/AAALAAQAAADv//b/AAALAAUAAADv//f/AAALAAUAAADw//X/AAAMAAQAAADw//b/AAAMAAUAAADw//f/AAAMAAUAAADx//X/AAAMAAQAAADx//b/AAAMAAUAAADx//f/AAAMAAUAAADy//X/AAAMAAQAAADy//b/AAAMAAUAAADy//f/AAAMAAUAAADz//X/AAAMAAQAAADz//b/AAAMAAUAAADz//f/AAAMAAUAAAD0//X/AAAMAAQAAAD0//b/AAAMAAUAAAD0//f/AAAMAAUAAAD1//X/AAAMAAQAAAD1//b/AAAMAAUAAAD1//f/AAAMAAUAAAD2//X/AAAMAAQAAAD2//b/AAAMAAUAAAD2//f/AAAMAAUAAAD3//X/AAAMAAQAAAD3//b/AAAMAAUAAAD3//f/AAAMAAUAAAD4//X/AAANAAQAAAD4//b/AAANAAUAAAD4//f/AAANAAUAAADv//r/AAALAAUAAADw//r/AAAMAAUAAADx//r/AAAMAAUAAADy//r/AAAMAAUAAADz//r/AAAMAAUAAAD0//r/AAAMAAUAAAD1//r/AAAMAAUAAAD2//r/AAAMAAUAAAD3//r/AAAMAAUAAAD4//r/AAANAAUAAADv//v/AAALAAUAAADw//v/AAAMAAUAAADx//v/AAAMAAUAAADy//v/AAAMAAUAAADz//v/AAAMAAUAAAD0//v/AAAMAAUAAAD1//v/AAAMAAUAAAD2//v/AAAMAAUAAAD3//v/AAAMAAUAAAD4//v/AAANAAUAAADv//z/AAALAAUAAADw//z/AAAMAAUAAADx//z/AAAMAAUAAADy//z/AAAMAAUAAADz//z/AAAMA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AUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAlAAAAAAAMAAQAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAmAP//AAAOAAMAAAAnAP//AAAPAAMAAAAoAP//AAAPAAMAAAApAP//AAAPAAMAAAAqAP//AAAPAAMAAAArAP//AAAPAAMAAAAsAP//AAAPAAMAAAAtAP//AAAPAAMAAAAuAP//AAAPAAMAAAAvAP//AAAPAAMAAAAwAP//AAAQAAMAAAAxAPf/AAAHAAQAAAAxAPj/AAAHAAUAAAAxAPn/AAAHAAUAAAAxAPr/AAAHAAUAAAAxAPv/AAAHAAUAAAAxAPz/AAAHAAUAAAAxAP3/AAAHAAUAAAAxAP7/AAAHAAUAAAAxAP//AAAHAAYAAAA=") tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(8, 786432, 4, 9, 786432, 4, 10, 786432, 4, 11, 786432, 4, 12, 786432, 4, 13, 786432, 4, 14, 786432, 4, 65528, 851968, 5, 65527, 786432, 5, 65526, 786432, 5, 65525, 786432, 5, 65524, 786432, 5, 65523, 786432, 5, 65544, 786432, 5, 131080, 786432, 5, 196616, 786432, 5, 262152, 786432, 5, 65545, 786432, 5, 131081, 786432, 5, 196617, 786432, 5, 262153, 786432, 5, 65546, 786432, 5, 131082, 786432, 5, 196618, 786432, 5, 262154, 786432, 5, 65547, 786432, 5, 131083, 786432, 5, 196619, 786432, 5, 262155, 786432, 5, 65548, 786432, 5, 131084, 786432, 5, 196620, 786432, 5, 262156, 786432, 5, 65549, 786432, 5, 131085, 786432, 5, 196621, 786432, 5, 262157, 786432, 5, 65550, 786432, 5, 131086, 786432, 5, 196622, 786432, 5, 262158, 786432, 5, 327694, 786432, 5, 327693, 786432, 5, 327692, 786432, 5, 327691, 786432, 5, 327690, 786432, 5, 327689, 786432, 5, 327688, 786432, 5, -131089, 720896, 5, -65553, 720896, 5, -17, 720896, 5, 65519, 720896, 6, -131088, 786432, 5, -65552, 786432, 5, -16, 786432, 5, 65520, 786432, 5, -131087, 786432, 5, -65551, 786432, 5, -15, 786432, 5, 65521, 786432, 5, -131086, 786432, 5, -65550, 786432, 5, -14, 786432, 5, 65522, 786432, 5, -131085, 786432, 5, -65549, 786432, 5, -13, 786432, 5, -131084, 786432, 5, -65548, 786432, 5, -12, 786432, 5, -131083, 786432, 5, -65547, 786432, 5, -11, 786432, 5, -131082, 786432, 5, -65546, 786432, 5, -10, 786432, 5, -131081, 786432, 5, -65545, 786432, 5, -9, 786432, 5, -131080, 851968, 5, -65544, 851968, 5, -8, 851968, 5, 131064, 851968, 5, 196600, 851968, 5, 262136, 851968, 5, 327672, 851968, 5, 393208, 851968, 5, 131056, 786432, 5, 196592, 786432, 5, 262128, 786432, 5, 327664, 786432, 5, 393200, 786432, 5, 131057, 786432, 5, 196593, 786432, 5, 262129, 786432, 5, 327665, 786432, 5, 393201, 786432, 5, 131058, 786432, 5, 196594, 786432, 5, 262130, 786432, 5, 327666, 786432, 5, 393202, 786432, 5, 131059, 786432, 5, 196595, 786432, 5, 262131, 786432, 5, 327667, 786432, 5, 393203, 786432, 5, 131060, 786432, 5, 196596, 786432, 5, 262132, 786432, 5, 327668, 786432, 5, 393204, 786432, 5, 131061, 786432, 5, 196597, 786432, 5, 262133, 786432, 5, 327669, 786432, 5, 393205, 786432, 5, 131062, 786432, 5, 196598, 786432, 5, 262134, 786432, 5, 327670, 786432, 5, 393206, 786432, 5, 131063, 786432, 5, 196599, 786432, 5, 262135, 786432, 5, 327671, 786432, 5, 393207, 786432, 5, 17, 786432, 4, 65553, 786432, 5, 131089, 786432, 5, 196625, 786432, 5, 262161, 786432, 5, 327697, 786432, 5, 18, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 327698, 786432, 5, 15, 786432, 4, 65551, 786432, 5, 131087, 786432, 5, 196623, 786432, 5, 262159, 786432, 5, 327695, 786432, 5, 16, 786432, 4, 65552, 786432, 5, 131088, 786432, 5, 196624, 786432, 5, 262160, 786432, 5, 327696, 786432, 5, 19, 786432, 4, 65555, 786432, 5, 131091, 786432, 5, 196627, 786432, 5, 262163, 786432, 5, 327699, 786432, 5, -458769, 720896, 5, -393233, 720896, 5, -458768, 786432, 5, -393232, 786432, 5, -458767, 786432, 5, -393231, 786432, 5, -458766, 786432, 5, -393230, 786432, 5, -458765, 786432, 5, -393229, 786432, 5, -458764, 786432, 5, -393228, 786432, 5, -458763, 786432, 5, -393227, 786432, 5, -458762, 786432, 5, -393226, 786432, 5, -458761, 786432, 5, -393225, 786432, 5, -458760, 851968, 5, -393224, 851968, 5, -655377, 720896, 4, -589841, 720896, 5, -524305, 720896, 5, -655376, 786432, 4, -589840, 786432, 5, -524304, 786432, 5, -655375, 786432, 4, -589839, 786432, 5, -524303, 786432, 5, -655374, 786432, 4, -589838, 786432, 5, -524302, 786432, 5, -655373, 786432, 4, -589837, 786432, 5, -524301, 786432, 5, -655372, 786432, 4, -589836, 786432, 5, -524300, 786432, 5, -655371, 786432, 4, -589835, 786432, 5, -524299, 786432, 5, -655370, 786432, 4, -589834, 786432, 5, -524298, 786432, 5, -655369, 786432, 4, -589833, 786432, 5, -524297, 786432, 5, -655368, 851968, 4, -589832, 851968, 5, -524296, 851968, 5, -327697, 720896, 5, -327696, 786432, 5, -327695, 786432, 5, -327694, 786432, 5, -327693, 786432, 5, -327692, 786432, 5, -327691, 786432, 5, -327690, 786432, 5, -327689, 786432, 5, -327688, 851968, 5, -262161, 720896, 5, -262160, 786432, 5, -262159, 786432, 5, -262158, 786432, 5, -262157, 786432, 5, -262156, 786432, 5, -262155, 786432, 5, -262154, 786432, 5, -262153, 786432, 5, -262152, 851968, 5, -196625, 720896, 5, -196624, 786432, 5, -196623, 786432, 5, -196622, 786432, 5, -196621, 786432, 5, -196620, 786432, 5, -196619, 786432, 5, -196618, 786432, 5, -196617, 786432, 5, -196616, 851968, 5, 20, 786432, 4, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 327700, 786432, 5, 21, 786432, 4, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 327701, 786432, 5, 22, 786432, 4, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 786432, 5, 327702, 786432, 5, 23, 786432, 4, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327703, 786432, 5, 24, 786432, 4, 65560, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 25, 786432, 4, 65561, 786432, 5, 131097, 786432, 5, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 26, 786432, 4, 65562, 786432, 5, 131098, 786432, 5, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 27, 786432, 4, 65563, 786432, 5, 131099, 786432, 5, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, -65498, 917504, 3, 38, 786432, 4, 65574, 786432, 5, 131110, 786432, 5, 196646, 786432, 5, 262182, 786432, 5, 327718, 786432, 5, 39, 786432, 4, 65575, 786432, 5, 131111, 786432, 5, 196647, 786432, 5, 262183, 786432, 5, 327719, 786432, 5, -65496, 983040, 3, 40, 786432, 4, 65576, 786432, 5, 131112, 786432, 5, 196648, 786432, 5, 262184, 786432, 5, 327720, 786432, 5, -65495, 983040, 3, 41, 786432, 4, 65577, 786432, 5, 131113, 786432, 5, 196649, 786432, 5, 262185, 786432, 5, 327721, 786432, 5, -65494, 983040, 3, 42, 786432, 4, 65578, 786432, 5, 131114, 786432, 5, 196650, 786432, 5, 262186, 786432, 5, 327722, 786432, 5, -65493, 983040, 3, 43, 786432, 4, 65579, 786432, 5, 131115, 786432, 5, 196651, 786432, 5, 262187, 786432, 5, 327723, 786432, 5, -65492, 983040, 3, 44, 786432, 4, 65580, 786432, 5, 131116, 786432, 5, 196652, 786432, 5, 262188, 786432, 5, 327724, 786432, 5, -65491, 983040, 3, 45, 786432, 4, 65581, 786432, 5, 131117, 786432, 5, 196653, 786432, 5, 262189, 786432, 5, 327725, 786432, 5, -65490, 983040, 3, 46, 786432, 4, 65582, 786432, 5, 131118, 786432, 5, 196654, 786432, 5, 262190, 786432, 5, 327726, 786432, 5, -65489, 983040, 3, 47, 786432, 4, 65583, 786432, 5, 131119, 786432, 5, 196655, 786432, 5, 262191, 786432, 5, 327727, 786432, 5, -65488, 1048576, 3, 48, 786432, 4, 65584, 786432, 5, 131120, 786432, 5, 196656, 786432, 5, 262192, 786432, 5, 327728, 786432, 5, 49, 851968, 4, 65585, 851968, 5, 131121, 851968, 5, 196657, 851968, 5, 262193, 851968, 5, 327729, 851968, 5, -65497, 983040, 3, -589774, 720896, 4, -524238, 720896, 5, -458702, 720896, 5, -393166, 720896, 5, -327630, 720896, 5, -262094, 720896, 5, -196558, 720896, 5, -131022, 720896, 5, -65486, 720896, 5, 50, 720896, 5, 65586, 720896, 5, 131122, 720896, 5, 196658, 720896, 5, 262194, 720896, 5, 327730, 720896, 5, -589773, 786432, 4, -524237, 786432, 5, -458701, 786432, 5, -393165, 786432, 5, -327629, 786432, 5, -262093, 786432, 5, -196557, 786432, 5, -131021, 786432, 5, -65485, 786432, 5, 51, 786432, 5, 65587, 786432, 5, 131123, 786432, 5, 196659, 786432, 5, 262195, 786432, 5, 327731, 786432, 5, -589772, 786432, 4, -524236, 786432, 5, -458700, 786432, 5, -393164, 786432, 5, -327628, 786432, 5, -262092, 786432, 5, -196556, 786432, 5, -131020, 786432, 5, -65484, 786432, 5, 52, 786432, 5, 65588, 786432, 5, 131124, 786432, 5, 196660, 786432, 5, 262196, 786432, 5, 327732, 786432, 5, -589771, 786432, 4, -524235, 786432, 5, -458699, 786432, 5, -393163, 786432, 5, -327627, 786432, 5, -262091, 786432, 5, -196555, 786432, 5, -131019, 786432, 5, -65483, 786432, 5, 53, 786432, 5, 65589, 786432, 5, 131125, 786432, 5, 196661, 786432, 5, 262197, 786432, 5, 327733, 786432, 5, -589770, 786432, 4, -524234, 786432, 5, -458698, 786432, 5, -393162, 786432, 5, -327626, 786432, 5, -262090, 786432, 5, -196554, 786432, 5, -131018, 786432, 5, -65482, 786432, 5, 54, 786432, 5, 65590, 786432, 5, 131126, 786432, 5, 196662, 786432, 5, 262198, 786432, 5, 327734, 786432, 5, -589769, 786432, 4, -524233, 786432, 5, -458697, 786432, 5, -393161, 786432, 5, -327625, 786432, 5, -262089, 786432, 5, -196553, 786432, 5, -131017, 786432, 5, -65481, 786432, 5, 55, 786432, 5, 65591, 786432, 5, 131127, 786432, 5, 196663, 786432, 5, 262199, 786432, 5, 327735, 786432, 5, -589768, 786432, 4, -524232, 786432, 5, -458696, 786432, 5, -393160, 786432, 5, -327624, 786432, 5, -262088, 786432, 5, -196552, 786432, 5, -131016, 786432, 5, -65480, 786432, 5, 56, 786432, 5, 65592, 786432, 5, 131128, 786432, 5, 196664, 786432, 5, 262200, 786432, 5, 327736, 786432, 5, -589767, 786432, 4, -524231, 786432, 5, -458695, 786432, 5, -393159, 786432, 5, -327623, 786432, 5, -262087, 786432, 5, -196551, 786432, 5, -131015, 786432, 5, -65479, 786432, 5, 57, 786432, 5, 65593, 786432, 5, 131129, 786432, 5, 196665, 786432, 5, 262201, 786432, 5, 327737, 786432, 5, -589766, 786432, 4, -524230, 786432, 5, -458694, 786432, 5, -393158, 786432, 5, -327622, 786432, 5, -262086, 786432, 5, -196550, 786432, 5, -131014, 786432, 5, -65478, 786432, 5, 58, 786432, 5, 65594, 786432, 5, 131130, 786432, 5, 196666, 786432, 5, 262202, 786432, 5, 327738, 786432, 5, -589765, 851968, 4, -524229, 851968, 5, -458693, 851968, 5, -393157, 851968, 5, -327621, 851968, 5, -262085, 851968, 5, -196549, 851968, 5, -131013, 851968, 5, -65477, 851968, 5, 59, 851968, 5, 65595, 851968, 5, 131131, 851968, 5, 196667, 851968, 5, 262203, 851968, 5, 327739, 851968, 5, 28, 786432, 4, 65564, 786432, 5, 131100, 786432, 5, 196636, 786432, 5, 262172, 786432, 5, 327708, 786432, 5, 29, 786432, 4, 65565, 786432, 5, 131101, 786432, 5, 196637, 786432, 5, 262173, 786432, 5, 327709, 786432, 5, 30, 786432, 4, 65566, 786432, 5, 131102, 786432, 5, 196638, 786432, 5, 262174, 786432, 5, 327710, 786432, 5, 31, 786432, 4, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 32, 786432, 4, 65568, 786432, 5, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 33, 786432, 4, 65569, 786432, 5, 131105, 786432, 5, 196641, 786432, 5, 262177, 786432, 5, 327713, 786432, 5, 34, 786432, 4, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 786432, 5, 327714, 786432, 5, 35, 786432, 4, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 36, 786432, 4, 65572, 786432, 5, 131108, 786432, 5, 196644, 786432, 5, 262180, 786432, 5, 327716, 786432, 5, 37, 786432, 4, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 786432, 5, 327717, 786432, 5, -65487, 458752, 6, -131023, 458752, 5, -196559, 458752, 5, -262095, 458752, 5, -327631, 458752, 5, -393167, 458752, 5, -458703, 458752, 5, -524239, 458752, 5, -589775, 458752, 4) [node name="UI" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("2_v5qg2")] +[node name="UIInventory" parent="UI" instance=ExtResource("3_cysy4")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("3_oqmwp")] +[node name="UISign" parent="UI" instance=ExtResource("4_qqut6")] unique_name_in_owner = true visible = false -[node name="CharacterBody2D" parent="." instance=ExtResource("5_pr2x5")] +[node name="CharacterBody2D" parent="." instance=ExtResource("5_yv8tn")] unique_name_in_owner = true +z_index = 1 position = Vector2(66, -28) +script = ExtResource("6_68ewj") [node name="RoomLeftPhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true top_level = true position = Vector2(66, -91.205) -script = ExtResource("4_4b648") +script = ExtResource("6_2n5r1") priority = 5 follow_mode = 2 -follow_target = NodePath("../CharacterBody2D/PlayerVisuals") +follow_target = NodePath("../CharacterBody2D") zoom = Vector2(2, 2) tween_resource = SubResource("Resource_ct1eh") follow_offset = Vector2(0, -63.205) follow_damping = true draw_limits = true -limit_target = NodePath("../TileMap") +limit_target = NodePath("../StartingTerrain") limit_margin = Vector4i(-50, 0, -50, 0) [node name="RoomLeftArea2D" type="Area2D" parent="."] @@ -266,8 +260,8 @@ debug_color = Color(0, 0.6, 0.701961, 0.0313726) [node name="RoomCentrePhantomCamera2D" type="Node2D" parent="."] unique_name_in_owner = true top_level = true -position = Vector2(1474, -149) -script = ExtResource("4_4b648") +position = Vector2(1218, -217) +script = ExtResource("6_2n5r1") follow_mode = 2 zoom = Vector2(1.5, 1.5) tween_resource = SubResource("Resource_exr3j") @@ -298,7 +292,7 @@ unique_name_in_owner = true top_level = true position = Vector2(2347, -156) scale = Vector2(1.0024, 1) -script = ExtResource("4_4b648") +script = ExtResource("6_2n5r1") follow_mode = 2 zoom = Vector2(2, 2) tween_resource = SubResource("Resource_exr3j") @@ -306,6 +300,7 @@ follow_damping = true draw_limits = true [node name="Camera2D" type="Camera2D" parent="."] +physics_interpolation_mode = 1 position = Vector2(66, -91.205) zoom = Vector2(2, 2) process_callback = 0 @@ -319,6 +314,4 @@ editor_draw_limits = true [node name="PhantomCameraHost" type="Node" parent="Camera2D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("9_w5e16") - -[editable path="CharacterBody2D"] +script = ExtResource("8_hulu3") diff --git a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_noise_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_noise_example_scene.tscn similarity index 98% rename from addons/phantom_camera/examples/example_scenes/2D-4.3/2d_noise_example_scene.tscn rename to addons/phantom_camera/examples/example_scenes/2D/2d_noise_example_scene.tscn index 68e792e..62dff92 100644 --- a/addons/phantom_camera/examples/example_scenes/2D-4.3/2d_noise_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_noise_example_scene.tscn @@ -166,14 +166,7 @@ sources/0 = SubResource("TileSetAtlasSource_lvmak") [sub_resource type="Resource" id="Resource_87ddr"] script = ExtResource("11_d6abr") amplitude = 30.0 -frequency = 0.5 randomize_noise_seed = 1 -noise_seed = 0 -positional_noise = true -rotational_noise = false -positional_multiplier_x = 1.0 -positional_multiplier_y = 1.0 -rotational_multiplier = 1.0 [sub_resource type="Resource" id="Resource_rmnw1"] script = ExtResource("11_d6abr") @@ -181,11 +174,7 @@ amplitude = 40.0 frequency = 30.0 randomize_noise_seed = 1 noise_seed = 96 -positional_noise = true rotational_noise = true -positional_multiplier_x = 1.0 -positional_multiplier_y = 1.0 -rotational_multiplier = 1.0 [node name="Root" type="Node2D"] @@ -245,7 +234,7 @@ text = "[WASD] to move [node name="Camera2D" type="Camera2D" parent="."] physics_interpolation_mode = 1 position = Vector2(227, -28) -offset = Vector2(2.3068, -7.8485) +offset = Vector2(3.7613766, -1.1727414) ignore_rotation = false zoom = Vector2(1.5, 1.5) process_callback = 0 diff --git a/addons/phantom_camera/examples/example_scenes/2D/2d_tweening_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/2D/2d_tweening_example_scene.tscn index 24f2f3b..bf3e98b 100644 --- a/addons/phantom_camera/examples/example_scenes/2D/2d_tweening_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/2D/2d_tweening_example_scene.tscn @@ -1,18 +1,19 @@ -[gd_scene load_steps=19 format=3 uid="uid://cpyb3ucwcqj8l"] +[gd_scene load_steps=20 format=4 uid="uid://cpyb3ucwcqj8l"] -[ext_resource type="Texture2D" uid="uid://c77npili4pel4" path="res://addons/phantom_camera/examples/textures/2D/level_spritesheet.png" id="1_oo2bo"] -[ext_resource type="PackedScene" uid="uid://dg7rhrymsrrrm" path="res://addons/phantom_camera/examples/ui/ui_inventory.tscn" id="2_as4e6"] -[ext_resource type="PackedScene" uid="uid://iq5xd1ob1res" path="res://addons/phantom_camera/examples/ui/ui_sign.tscn" id="3_6yi7w"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="4_bb7en"] -[ext_resource type="Script" uid="uid://bhexx6mj1xv3q" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="5_kikl5"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="6_8u8cj"] -[ext_resource type="Resource" uid="uid://euybd2w0bax" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_2d_tween.tres" id="6_gu0o0"] -[ext_resource type="PackedScene" uid="uid://7kh0xydx0b1o" path="res://addons/phantom_camera/examples/example_scenes/2D/sub_scenes/playable_character_2d.tscn" id="8_g1syc"] -[ext_resource type="Script" uid="uid://t8wa4e5y5hcf" path="res://addons/phantom_camera/examples/scripts/2D/2d_trigger_area.gd" id="9_184pu"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="11_myq47"] +[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_easgx"] -texture = ExtResource("1_oo2bo") +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_cvmao"] +texture = ExtResource("1_h1rbo") 0:0/0 = 0 1:0/0 = 0 2:0/0 = 0 @@ -37,6 +38,7 @@ texture = ExtResource("1_oo2bo") 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 @@ -152,44 +154,40 @@ texture = ExtResource("1_oo2bo") 14:6/0 = 0 15:6/0 = 0 16:6/0 = 0 -5:3/0 = 0 -[sub_resource type="TileSet" id="TileSet_kf7eg"] +[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_easgx") +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("6_8u8cj") +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("6_8u8cj") +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("6_8u8cj") +script = ExtResource("10_guf2v") duration = 1.2 transition = 10 -ease = 2 -[node name="ExampleScene2D" type="Node2D"] +[node name="Root" type="Node2D"] [node name="Background" type="CanvasLayer" parent="."] layer = -3 @@ -208,36 +206,41 @@ grow_vertical = 2 localize_numeral_system = false color = Color(0.137255, 0.14902, 0.196078, 1) -[node name="TileMap" type="TileMap" parent="."] -z_index = -1 +[node name="Pillar" type="TileMapLayer" parent="."] +use_parent_material = true scale = Vector2(3, 3) -tile_set = SubResource("TileSet_kf7eg") -format = 2 -layer_0/name = "Background" -layer_0/tile_data = PackedInt32Array(-393216, 655360, 2, -327680, 655360, 3, -262144, 655360, 3, -196608, 655360, 3, -131072, 655360, 3, -65536, 655360, 3, -393215, 720896, 2, -327679, 720896, 1, -262143, 720896, 1, -196607, 720896, 1, -131071, 720896, 1, -65535, 720896, 1, -393214, 786432, 2, -327678, 786432, 3, -262142, 786432, 3, -196606, 786432, 3, -131070, 786432, 3, -65534, 786432, 3) -layer_1/name = "Terrain" -layer_1/z_index = 1 -layer_1/tile_data = PackedInt32Array(1, 720896, 0, 2, 720896, 0, 3, 720896, 0, 4, 720896, 0, 5, 720896, 0, 6, 720896, 0, 7, 720896, 0, 8, 720896, 0, 9, 786432, 0, 65545, 786432, 1, 131081, 786432, 1, 196617, 786432, 1, 262153, 786432, 1, 327689, 786432, 1, 393225, 786432, 1, 65537, 720896, 1, 131073, 720896, 1, 196609, 720896, 1, 262145, 458752, 1, 327681, 720896, 1, 393217, 720896, 1, 65538, 720896, 1, 131074, 720896, 1, 196610, 720896, 1, 262146, 720896, 1, 327682, 720896, 1, 393218, 720896, 1, 65539, 720896, 1, 131075, 720896, 1, 196611, 720896, 1, 262147, 720896, 1, 327683, 720896, 1, 393219, 720896, 1, 65540, 458752, 1, 131076, 720896, 1, 196612, 720896, 1, 262148, 720896, 1, 327684, 720896, 1, 393220, 720896, 1, 65541, 720896, 1, 131077, 720896, 1, 196613, 720896, 1, 262149, 458752, 1, 327685, 720896, 1, 393221, 720896, 1, 65542, 720896, 1, 131078, 720896, 1, 196614, 720896, 1, 262150, 720896, 1, 327686, 720896, 1, 393222, 720896, 1, 65543, 720896, 1, 131079, 720896, 1, 196615, 720896, 1, 262151, 720896, 1, 327687, 720896, 1, 393223, 458752, 1, 65544, 720896, 1, 131080, 720896, 1, 196616, 458752, 1, 262152, 720896, 1, 327688, 720896, 1, 393224, 720896, 1, 65546, 524288, 5, 65547, 524288, 5, 65548, 524288, 5, 65549, 524288, 5, 131082, 524288, 6, 131083, 524288, 6, 131084, 524288, 6, 131085, 524288, 6, 196618, 720896, 1, 262154, 720896, 1, 196619, 720896, 1, 262155, 720896, 1, 196620, 720896, 1, 262156, 720896, 1, 196621, 720896, 1, 262157, 720896, 1, 65550, 524288, 5, 65551, 524288, 5, 65552, 524288, 5, 131086, 524288, 6, 131087, 524288, 6, 131088, 524288, 6, 196622, 720896, 1, 196623, 720896, 1, 262159, 720896, 1, 262160, 720896, 1, 196624, 720896, 1, 262158, 720896, 1, 17, 720896, 4, 65553, 720896, 5, 131089, 720896, 5, 196625, 720896, 5, 262161, 720896, 5, 18, 786432, 4, 19, 786432, 4, 20, 786432, 4, 21, 786432, 4, 22, 786432, 4, 23, 786432, 4, 65554, 786432, 5, 131090, 786432, 5, 196626, 786432, 5, 262162, 786432, 5, 65555, 786432, 5, 131091, 589824, 6, 196627, 786432, 5, 262163, 786432, 5, 65556, 786432, 5, 131092, 786432, 5, 196628, 786432, 5, 262164, 786432, 5, 65557, 786432, 5, 131093, 786432, 5, 196629, 786432, 5, 262165, 786432, 5, 65558, 786432, 5, 131094, 786432, 5, 196630, 786432, 5, 262166, 655360, 6, 65559, 786432, 5, 131095, 786432, 5, 196631, 786432, 5, 262167, 786432, 5, 327697, 720896, 5, 393233, 720896, 5, 327698, 589824, 6, 393234, 786432, 5, 327699, 786432, 5, 393235, 786432, 5, 327700, 786432, 5, 393236, 786432, 5, 327701, 786432, 5, 393237, 786432, 5, 327702, 786432, 5, 393238, 786432, 5, 327703, 786432, 5, 393239, 786432, 5, -131062, 720896, 4, -131061, 786432, 4, -131060, 786432, 4, -65526, 720896, 6, -65525, 786432, 6, -65524, 786432, 6, -131056, 851968, 4, -65520, 851968, 6, -131059, 786432, 4, -131058, 786432, 4, -131057, 786432, 4, -65523, 786432, 6, -65522, 786432, 6, -65521, 786432, 6, -65536, 917504, 2, -65535, 983040, 2, -65534, 1048576, 2, -65533, 917504, 2, -65532, 983040, 2, -65531, 1048576, 2, -65530, 917504, 2, -65529, 983040, 2, -65528, 1048576, 2, 65535, 655360, 0, 131071, 655360, 1, 196607, 655360, 1, 262143, 655360, 1, 327679, 655360, 1, 393215, 655360, 1, 458751, 655360, 1, 524287, 655360, 1, 589823, 655360, 1, 0, 720896, 0, 65536, 720896, 1, 131072, 720896, 1, 196608, 720896, 1, 262144, 720896, 1, 327680, 720896, 1, 393216, 720896, 1, 458752, 720896, 1, 524288, 720896, 1, 524289, 720896, 1, 524290, 720896, 1, 524291, 720896, 1, 524292, 720896, 1, 524293, 720896, 1, 524294, 720896, 1, 524295, 720896, 1, 524296, 720896, 1, 524297, 786432, 1, 458761, 786432, 1, 458760, 720896, 1, 458759, 720896, 1, 458758, 458752, 1, 458757, 720896, 1, 458756, 720896, 1, 458755, 720896, 1, 458754, 720896, 1, 458753, 720896, 1, -262145, 851968, 4, -196609, 851968, 5, -131073, 851968, 5, -65537, 851968, 5, -1, 851968, 6, -262146, 786432, 4, -262147, 786432, 4, -196610, 589824, 6, -196611, 786432, 5, -6, 786432, 5, -5, 786432, 5, -4, 786432, 5, -3, 786432, 5, -2, 786432, 5, -65538, 786432, 5, -131074, 786432, 5, -131075, 786432, 5, -65539, 655360, 6, 65534, 851968, 5, 131070, 851968, 5, 196606, 851968, 5, 262142, 851968, 5, 327678, 851968, 5, 393214, 851968, 5, 458750, 851968, 5, 65533, 786432, 5, 65532, 786432, 5, 65531, 786432, 5, 65530, 786432, 5, 65529, 720896, 5, 131066, 786432, 5, 196602, 786432, 5, 262138, 786432, 5, 262139, 786432, 5, 327675, 786432, 5, 131068, 786432, 5, 131069, 786432, 5, 196605, 786432, 5, 262141, 786432, 5, 327677, 786432, 5, 393213, 786432, 5, 458749, 786432, 5, 393212, 786432, 5, 393211, 786432, 5, 458748, 786432, 5, 327676, 655360, 6, 262140, 786432, 5, 196604, 786432, 5, 131067, 786432, 5, 196603, 589824, 6, 458747, 786432, 5, 458746, 786432, 5, 393210, 786432, 5, 327674, 786432, 5, -7, 720896, 5, 131065, 720896, 5, 196601, 720896, 5, 262137, 720896, 5, 327673, 720896, 5, 393209, 720896, 5, 458745, 720896, 5, -327684, 720896, 3, -196594, 720896, 3, -196597, 720896, 3, -65518, 720896, 3, -65516, 720896, 3, -327686, 1048576, 5, -327685, 720896, 3, -196595, 917504, 6, -65514, 983040, 6, -327683, 983040, 5, -65513, 1048576, 5, -262151, 720896, 4, -196615, 720896, 5, -131079, 720896, 5, -65543, 720896, 5, -262150, 786432, 4, -196614, 655360, 6, -131078, 786432, 5, -65542, 786432, 5, -262149, 786432, 4, -196613, 786432, 5, -131077, 786432, 5, -65541, 786432, 5, -262148, 786432, 4, -196612, 786432, 5, -131076, 786432, 5, -65540, 786432, 5, 458769, 720896, 5, 458775, 786432, 5, 458774, 786432, 5, 458773, 786432, 5, 458772, 786432, 5, 458771, 786432, 5, 458770, 786432, 5, 327690, 720896, 1, 393226, 720896, 1, 458762, 720896, 1, 524298, 720896, 1, 327691, 720896, 1, 393227, 720896, 1, 458763, 720896, 1, 524299, 720896, 1, 327692, 720896, 1, 393228, 720896, 1, 458764, 720896, 1, 524300, 720896, 1, 327693, 720896, 1, 393229, 720896, 1, 458765, 720896, 1, 524301, 720896, 1, 327694, 720896, 1, 393230, 720896, 1, 458766, 720896, 1, 524302, 720896, 1, 327695, 720896, 1, 393231, 720896, 1, 458767, 720896, 1, 524303, 720896, 1, 327696, 720896, 1, 393232, 720896, 1, 458768, 720896, 1, 524304, 720896, 1, 29, 851968, 4, 65565, 851968, 5, 131101, 851968, 5, 196637, 851968, 5, 262173, 851968, 5, 327709, 851968, 5, 393245, 851968, 5, 458781, 851968, 5, 24, 786432, 4, 25, 786432, 4, 26, 786432, 4, 27, 786432, 4, 28, 786432, 4, 65560, 786432, 5, 65561, 786432, 5, 65562, 786432, 5, 65563, 786432, 5, 65564, 786432, 5, 131100, 786432, 5, 196636, 589824, 6, 131099, 786432, 5, 131098, 786432, 5, 131097, 786432, 5, 131096, 786432, 5, 196632, 786432, 5, 262168, 786432, 5, 327704, 786432, 5, 393240, 786432, 5, 458776, 786432, 5, 196633, 786432, 5, 262169, 786432, 5, 327705, 786432, 5, 393241, 786432, 5, 458777, 786432, 5, 196634, 786432, 5, 262170, 786432, 5, 327706, 786432, 5, 393242, 655360, 6, 458778, 786432, 5, 196635, 786432, 5, 262171, 786432, 5, 327707, 786432, 5, 393243, 786432, 5, 458779, 786432, 5, 262172, 786432, 5, 327708, 786432, 5, 393244, 786432, 5, 458780, 786432, 5, -196593, 1048576, 6, -393182, 1048576, 6, -393185, 917504, 6, -393180, 983040, 6, -393184, 983040, 5, -65509, 720896, 3, -65510, 720896, 3, -393181, 720896, 3, -393183, 720896, 3, -65517, 720896, 3, -65515, 720896, 3, -327650, 720896, 4, -262114, 720896, 5, -196578, 720896, 5, -131042, 720896, 5, -65506, 720896, 5, -327649, 786432, 4, -327648, 786432, 4, -327647, 786432, 4, -327646, 786432, 4, -327645, 786432, 4, -327644, 786432, 4, -327643, 786432, 4, -65499, 786432, 5, -131035, 786432, 5, -196571, 786432, 5, -262107, 655360, 6, -262108, 786432, 5, -262109, 786432, 5, -262110, 786432, 5, -262111, 786432, 5, -262112, 786432, 5, -262113, 786432, 5, -196577, 655360, 6, -131041, 786432, 5, -65505, 786432, 5, -65500, 655360, 6, -131036, 589824, 6, -196572, 786432, 5, -196573, 786432, 5, -196574, 786432, 5, -196575, 786432, 5, -196576, 786432, 5, -131040, 589824, 6, -65504, 786432, 5, -65501, 786432, 5, -131037, 786432, 5, -131038, 786432, 5, -131039, 786432, 5, -65503, 786432, 5, -65502, 786432, 5, 524318, 720896, 6, 458782, 720896, 5, 393246, 720896, 5, 327710, 720896, 5, 262174, 720896, 5, 196638, 720896, 5, 131102, 720896, 5, 65566, 720896, 5, 30, 720896, 5, 524319, 786432, 6, 524320, 786432, 6, 524321, 786432, 6, 524322, 786432, 6, 524323, 786432, 6, 524324, 786432, 6, 524325, 786432, 6, 31, 786432, 5, 65567, 786432, 5, 131103, 786432, 5, 196639, 786432, 5, 262175, 786432, 5, 327711, 786432, 5, 393247, 655360, 6, 458783, 786432, 5, 32, 786432, 5, 65568, 786432, 5, 131104, 786432, 5, 196640, 786432, 5, 262176, 786432, 5, 327712, 786432, 5, 393248, 786432, 5, 458784, 786432, 5, 33, 786432, 5, 65569, 786432, 5, 131105, 655360, 6, 196641, 786432, 5, 262177, 786432, 5, 327713, 786432, 5, 393249, 786432, 5, 458785, 786432, 5, 34, 786432, 5, 65570, 786432, 5, 131106, 786432, 5, 196642, 786432, 5, 262178, 655360, 6, 327714, 655360, 6, 393250, 786432, 5, 458786, 786432, 5, 35, 786432, 5, 65571, 786432, 5, 131107, 786432, 5, 196643, 786432, 5, 262179, 786432, 5, 327715, 786432, 5, 393251, 786432, 5, 458787, 786432, 5, 36, 655360, 6, 65572, 786432, 5, 131108, 786432, 5, 196644, 786432, 5, 262180, 786432, 5, 327716, 786432, 5, 393252, 786432, 5, 458788, 655360, 6, 37, 786432, 5, 65573, 786432, 5, 131109, 786432, 5, 196645, 786432, 5, 262181, 655360, 6, 327717, 786432, 5, 393253, 786432, 5, 458789, 786432, 5, 524281, 720896, 5, 524285, 786432, 5, 524284, 786432, 5, 524283, 786432, 5, 524282, 786432, 5, 589818, 786432, 5, 589819, 786432, 5, 589820, 786432, 5, 655356, 786432, 5, 655357, 786432, 5, 589821, 786432, 5, 655355, 786432, 5, 655354, 786432, 5, 720890, 786432, 5, 720891, 786432, 5, 720892, 786432, 5, 720893, 786432, 5, 720894, 851968, 5, 786429, 786432, 5, 786428, 786432, 5, 786427, 786432, 5, 786426, 786432, 5, 851962, 786432, 5, 917498, 786432, 5, 917499, 786432, 5, 851964, 786432, 5, 851965, 786432, 5, 917501, 786432, 5, 917500, 786432, 5, 851963, 786432, 5, 589817, 720896, 5, 655353, 720896, 5, 720889, 720896, 5, 786425, 720896, 5, 851961, 720896, 5, 917497, 720896, 5, 524286, 851968, 5, 589822, 851968, 5, 655358, 851968, 5, 786430, 851968, 5, 851966, 851968, 5, 917502, 851968, 5, 589824, 720896, 1, 655360, 720896, 1, 720896, 720896, 1, 786432, 720896, 1, 851968, 720896, 1, 589825, 720896, 1, 655361, 720896, 1, 720897, 720896, 1, 786433, 720896, 1, 851969, 720896, 1, 589826, 720896, 1, 655362, 720896, 1, 720898, 720896, 1, 786434, 720896, 1, 851970, 720896, 1, 589827, 720896, 1, 655363, 720896, 1, 720899, 720896, 1, 786435, 720896, 1, 851971, 720896, 1, 589828, 720896, 1, 655364, 720896, 1, 720900, 720896, 1, 786436, 720896, 1, 851972, 720896, 1, 589829, 720896, 1, 655365, 720896, 1, 720901, 720896, 1, 786437, 720896, 1, 851973, 720896, 1, 589830, 720896, 1, 655366, 720896, 1, 720902, 720896, 1, 786438, 720896, 1, 851974, 720896, 1, 589831, 720896, 1, 655367, 720896, 1, 720903, 720896, 1, 786439, 720896, 1, 851975, 720896, 1, 589832, 720896, 1, 655368, 720896, 1, 720904, 720896, 1, 786440, 720896, 1, 851976, 720896, 1, 589833, 786432, 1, 655369, 786432, 1, 720905, 786432, 1, 786441, 786432, 1, 851977, 786432, 1, 655359, 655360, 1, 720895, 655360, 1, 786431, 655360, 1, 851967, 655360, 1, 917503, 655360, 1, 589834, 720896, 1, 655370, 720896, 1, 720906, 720896, 1, 786442, 720896, 1, 851978, 720896, 1, 589835, 720896, 1, 655371, 720896, 1, 720907, 720896, 1, 786443, 720896, 1, 851979, 720896, 1, 589836, 720896, 1, 655372, 720896, 1, 720908, 720896, 1, 786444, 720896, 1, 851980, 720896, 1, 589837, 720896, 1, 655373, 720896, 1, 720909, 720896, 1, 786445, 720896, 1, 851981, 720896, 1, 589838, 720896, 1, 655374, 720896, 1, 720910, 720896, 1, 786446, 720896, 1, 851982, 720896, 1, 589839, 720896, 1, 655375, 720896, 1, 720911, 720896, 1, 786447, 720896, 1, 851983, 720896, 1, 589840, 720896, 1, 655376, 720896, 1, 720912, 720896, 1, 786448, 720896, 1, 851984, 720896, 1, 851985, 720896, 6, 851986, 786432, 6, 851987, 786432, 6, 851988, 786432, 6, 851989, 786432, 6, 851990, 786432, 6, 851991, 786432, 6, 851992, 786432, 6, 851993, 786432, 6, 851994, 786432, 6, 851995, 786432, 6, 851996, 786432, 6, 851997, 851968, 6, 524306, 786432, 5, 589842, 786432, 5, 655378, 786432, 5, 720914, 786432, 5, 786450, 786432, 5, 524307, 786432, 5, 589843, 786432, 5, 655379, 786432, 5, 720915, 786432, 5, 786451, 786432, 5, 524308, 786432, 5, 589844, 786432, 5, 655380, 786432, 5, 720916, 786432, 5, 786452, 786432, 5, 524309, 786432, 5, 589845, 786432, 5, 655381, 786432, 5, 720917, 786432, 5, 786453, 786432, 5, 524310, 786432, 5, 589846, 786432, 5, 655382, 786432, 5, 720918, 786432, 5, 786454, 786432, 5, 524311, 786432, 5, 589847, 786432, 5, 655383, 786432, 5, 720919, 786432, 5, 786455, 786432, 5, 524312, 786432, 5, 589848, 786432, 5, 655384, 786432, 5, 720920, 786432, 5, 786456, 786432, 5, 524313, 786432, 5, 589849, 786432, 5, 655385, 786432, 5, 720921, 786432, 5, 786457, 786432, 5, 524314, 786432, 5, 589850, 786432, 5, 655386, 786432, 5, 720922, 786432, 5, 786458, 786432, 5, 524315, 786432, 5, 589851, 786432, 5, 655387, 786432, 5, 720923, 786432, 5, 786459, 786432, 5, 524316, 786432, 5, 589852, 786432, 5, 655388, 786432, 5, 720924, 786432, 5, 786460, 786432, 5, 524305, 720896, 5, 589841, 720896, 5, 655377, 720896, 5, 720913, 720896, 5, 786449, 720896, 5, 524317, 851968, 5, 589853, 851968, 5, 655389, 851968, 5, 720925, 851968, 5, 786461, 851968, 5, -262106, 786432, 5, -196570, 786432, 5, -131034, 786432, 5, -65498, 786432, 5, 38, 786432, 5, 65574, 786432, 5, 131110, 655360, 6, 196646, 786432, 5, 262182, 786432, 5, 327718, 786432, 5, 393254, 786432, 5, 458790, 786432, 5, -262105, 786432, 5, -196569, 786432, 5, -131033, 786432, 5, -65497, 786432, 5, 39, 786432, 5, 65575, 786432, 5, 131111, 786432, 5, 196647, 786432, 5, 262183, 786432, 5, 327719, 786432, 5, 393255, 655360, 6, 458791, 786432, 5, -262104, 786432, 5, -196568, 786432, 5, -131032, 786432, 5, -65496, 786432, 5, 40, 655360, 6, 65576, 786432, 5, 131112, 786432, 5, 196648, 786432, 5, 262184, 655360, 6, 327720, 786432, 5, 393256, 786432, 5, 458792, 786432, 5, -262103, 786432, 5, -196567, 655360, 6, -131031, 786432, 5, -65495, 786432, 5, 41, 786432, 5, 65577, 786432, 5, 131113, 786432, 5, 196649, 786432, 5, 262185, 786432, 5, 327721, 786432, 5, 393257, 786432, 5, 458793, 786432, 5, -262102, 786432, 5, -196566, 786432, 5, -131030, 786432, 5, -65494, 786432, 5, 42, 786432, 5, 65578, 786432, 5, 131114, 655360, 6, 196650, 786432, 5, 262186, 786432, 5, 327722, 786432, 5, 393258, 786432, 5, 458794, 655360, 6, 524326, 786432, 6, 524327, 786432, 6, 524328, 786432, 6, 524329, 786432, 6, 524330, 786432, 6, -327642, 786432, 4, -327641, 786432, 4, -327640, 786432, 4, -327639, 786432, 4, -327638, 786432, 4, -327632, 851968, 4, -262096, 851968, 5, -196560, 851968, 5, -131024, 851968, 5, -65488, 851968, 5, 48, 851968, 5, 65584, 851968, 5, 131120, 851968, 5, 196656, 851968, 5, 262192, 851968, 5, 327728, 851968, 5, 393264, 851968, 5, 458800, 851968, 5, 524336, 851968, 6, -327637, 786432, 4, -327636, 786432, 4, -327635, 786432, 4, -327634, 786432, 4, -327633, 786432, 4, -262101, 786432, 5, -196565, 786432, 5, -131029, 655360, 6, -65493, 786432, 5, 43, 786432, 5, 65579, 786432, 5, 131115, 786432, 5, 196651, 786432, 5, 262187, 786432, 5, 327723, 655360, 6, 393259, 786432, 5, 458795, 786432, 5, -262100, 786432, 5, -196564, 786432, 5, -131028, 786432, 5, -65492, 786432, 5, 44, 655360, 6, 65580, 786432, 5, 131116, 786432, 5, 196652, 786432, 5, 262188, 786432, 5, 327724, 786432, 5, 393260, 786432, 5, 458796, 786432, 5, -262099, 786432, 5, -196563, 786432, 5, -131027, 786432, 5, -65491, 786432, 5, 45, 786432, 5, 65581, 655360, 6, 131117, 786432, 5, 196653, 786432, 5, 262189, 786432, 5, 327725, 786432, 5, 393261, 786432, 5, 458797, 786432, 5, -262098, 655360, 6, -196562, 786432, 5, -131026, 786432, 5, -65490, 786432, 5, 46, 786432, 5, 65582, 786432, 5, 131118, 786432, 5, 196654, 655360, 6, 262190, 786432, 5, 327726, 786432, 5, 393262, 786432, 5, 458798, 655360, 6, -262097, 786432, 5, -196561, 786432, 5, -131025, 786432, 5, -65489, 786432, 5, 47, 786432, 5, 65583, 786432, 5, 131119, 786432, 5, 196655, 786432, 5, 262191, 786432, 5, 327727, 786432, 5, 393263, 786432, 5, 458799, 786432, 5, 524331, 786432, 6, 524332, 786432, 6, 524333, 786432, 6, 524334, 786432, 6, 524335, 786432, 6) +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("AAABAAAAAAALAAAAAAACAAAAAAALAAAAAAADAAAAAAALAAAAAAAEAAAAAAALAAAAAAAFAAAAAAALAAAAAAAGAAAAAAALAAAAAAAHAAAAAAALAAAAAAAIAAAAAAALAAAAAAAJAAAAAAAMAAAAAAAJAAEAAAAMAAEAAAAJAAIAAAAMAAEAAAAJAAMAAAAMAAEAAAAJAAQAAAAMAAEAAAAJAAUAAAAMAAEAAAAJAAYAAAAMAAEAAAABAAEAAAALAAEAAAABAAIAAAALAAEAAAABAAMAAAALAAEAAAABAAQAAAAHAAEAAAABAAUAAAALAAEAAAABAAYAAAALAAEAAAACAAEAAAALAAEAAAACAAIAAAALAAEAAAACAAMAAAALAAEAAAACAAQAAAALAAEAAAACAAUAAAALAAEAAAACAAYAAAALAAEAAAADAAEAAAALAAEAAAADAAIAAAALAAEAAAADAAMAAAALAAEAAAADAAQAAAALAAEAAAAD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jAAcAAAAMAAUAAAAkAAAAAAAKAAYAAAAkAAEAAAAMAAUAAAAkAAIAAAAMAAUAAAAkAAMAAAAMAAUAAAAkAAQAAAAMAAUAAAAkAAUAAAAMAAUAAAAkAAYAAAAMAAUAAAAkAAcAAAAKAAYAAAAlAAAAAAAMAAUAAAAlAAEAAAAMAAUAAAAlAAIAAAAMAAUAAAAlAAMAAAAMAAUAAAAlAAQAAAAMAAUAAAAlAAUAAAAMAAUAAAAlAAYAAAAMAAUAAAAlAAcAAAAMAAUAAAD6/wcAAAAMAAUAAAD7/wcAAAAMAAUAAAD8/wcAAAAMAAUAAAD9/wcAAAAMAAUAAAD5/wcAAAALAAUAAAD+/wcAAAANAAUAAAD5/wgAAAALAAYAAAD6/wgAAAAMAAYAAAD7/wgAAAAMAAYAAAD8/wgAAAAMAAYAAAD9/wgAAAAMAAYAAAD+/wgAAAANAAYAAAA=") +tile_set = SubResource("TileSet_na7gm") [node name="UI" type="CanvasLayer" parent="."] -[node name="UIInventory" parent="UI" instance=ExtResource("2_as4e6")] +[node name="UIInventory" parent="UI" instance=ExtResource("2_1f2t2")] unique_name_in_owner = true visible = false -[node name="UISign" parent="UI" instance=ExtResource("3_6yi7w")] +[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_bb7en") +script = ExtResource("4_j7670") [node name="Player" type="Node" parent="."] @@ -245,11 +248,11 @@ script = ExtResource("4_bb7en") unique_name_in_owner = true top_level = true position = Vector2(227, -28) -script = ExtResource("5_kikl5") +script = ExtResource("5_gvv7r") priority = 5 follow_mode = 2 -follow_target = NodePath("../CharacterBody2D/PlayerVisuals") -tween_resource = ExtResource("6_gu0o0") +follow_target = NodePath("../CharacterBody2D") +tween_resource = ExtResource("6_rwobr") tween_on_load = false follow_damping = true draw_limits = true @@ -260,18 +263,19 @@ 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("11_myq47") +theme_override_fonts/font = ExtResource("7_ylx0h") text = "[WASD] to move [Space] to jump" -[node name="CharacterBody2D" parent="Player" instance=ExtResource("8_g1syc")] +[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_184pu") +script = ExtResource("9_3r1pw") area_pcam = NodePath("PhantomCamera2D") [node name="CollisionShape2D" type="CollisionShape2D" parent="WideArea"] @@ -293,7 +297,7 @@ 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("11_myq47") +theme_override_fonts/font = ExtResource("7_ylx0h") text = "Transition Type: Sine @@ -303,7 +307,7 @@ horizontal_alignment = 1 [node name="PhantomCamera2D" type="Node2D" parent="WideArea"] position = Vector2(4, -100) -script = ExtResource("5_kikl5") +script = ExtResource("5_gvv7r") zoom = Vector2(0.8, 0.8) tween_resource = SubResource("Resource_mtp70") draw_limits = true @@ -312,7 +316,7 @@ draw_limits = true position = Vector2(649, -135) collision_layer = 2 collision_mask = 2 -script = ExtResource("9_184pu") +script = ExtResource("9_3r1pw") area_pcam = NodePath("PhantomCamera2D") [node name="CollisionShape2D" type="CollisionShape2D" parent="UpperZoomArea"] @@ -338,7 +342,7 @@ 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("11_myq47") +theme_override_fonts/font = ExtResource("7_ylx0h") text = "Transition Type: Circ @@ -348,7 +352,7 @@ horizontal_alignment = 1 [node name="PhantomCamera2D" type="Node2D" parent="UpperZoomArea"] position = Vector2(2, -83) -script = ExtResource("5_kikl5") +script = ExtResource("5_gvv7r") zoom = Vector2(2, 2) tween_resource = SubResource("Resource_8jg5c") draw_limits = true @@ -357,7 +361,7 @@ draw_limits = true position = Vector2(1136, -38) collision_layer = 2 collision_mask = 2 -script = ExtResource("9_184pu") +script = ExtResource("9_3r1pw") area_pcam = NodePath("PhantomCamera2D") [node name="CollisionShape2D" type="CollisionShape2D" parent="ForwardArea"] @@ -379,7 +383,7 @@ 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("11_myq47") +theme_override_fonts/font = ExtResource("7_ylx0h") text = "Transition Type: Back @@ -389,9 +393,7 @@ horizontal_alignment = 1 [node name="PhantomCamera2D" type="Node2D" parent="ForwardArea"] position = Vector2(344, -46) -script = ExtResource("5_kikl5") +script = ExtResource("5_gvv7r") zoom = Vector2(0.9, 0.9) tween_resource = SubResource("Resource_e4e41") draw_limits = true - -[editable path="Player/CharacterBody2D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_example_scene.tscn deleted file mode 100644 index d557c93..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_example_scene.tscn +++ /dev/null @@ -1,413 +0,0 @@ -[gd_scene load_steps=41 format=3 uid="uid://cypbptekk8etg"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_u86qq"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="2_jl1he"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="3_an0dt"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="3_yfuq5"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="4_iy6qn"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="5_0ku52"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="6_prr6u"] -[ext_resource type="Script" uid="uid://uvw6pg1ut0ms" path="res://addons/phantom_camera/examples/scripts/3D/npc.gd" id="7_nl3ax"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="8_xvqcg"] -[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="9_hqgwi"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="10_cd0kn"] - -[sub_resource type="Resource" id="Resource_jtk1d"] -script = ExtResource("6_prr6u") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_o161n"] -script = ExtResource("6_prr6u") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxMesh" id="BoxMesh_7tjw4"] -size = Vector3(2, 0.5, 4) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hpllm"] -transparency = 1 -albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961) - -[sub_resource type="BoxShape3D" id="BoxShape3D_65o6h"] -size = Vector3(2, 0.5, 4) - -[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_tpc7d"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_g0eml"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v5iy7"] -albedo_color = Color(0.988235, 0.478431, 0.905882, 1) - -[sub_resource type="Resource" id="Resource_tpvee"] -script = ExtResource("8_xvqcg") -duration = 0.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_bxbnv"] -script = ExtResource("6_prr6u") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxShape3D" id="BoxShape3D_wcrbb"] -size = Vector3(6.8, 0.1, 5.4) - -[sub_resource type="Resource" id="Resource_7ih0k"] -script = ExtResource("8_xvqcg") -duration = 0.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_4iyps"] -script = ExtResource("6_prr6u") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxShape3D" id="BoxShape3D_ctyr8"] -size = Vector3(7.4, 0.1, 3.6) - -[sub_resource type="Resource" id="Resource_x5y0u"] -script = ExtResource("8_xvqcg") -duration = 0.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_pgiyx"] -script = ExtResource("6_prr6u") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxShape3D" id="BoxShape3D_ua072"] -size = Vector3(6.8, 0.1, 3.6) - -[sub_resource type="BoxMesh" id="BoxMesh_ugc3s"] -size = Vector3(1, 1, 2) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_68thd"] -albedo_color = Color(0.34902, 0.862745, 0.854902, 1) - -[sub_resource type="BoxMesh" id="BoxMesh_wphly"] -size = Vector3(1, 0.5, 1) - -[sub_resource type="BoxMesh" id="BoxMesh_gyp5s"] -size = Vector3(20, 40, 30) - -[sub_resource type="BoxShape3D" id="BoxShape3D_lfaqs"] -size = Vector3(20, 40, 30) - -[sub_resource type="BoxMesh" id="BoxMesh_n70lt"] -size = Vector3(14, 40, 6) - -[sub_resource type="BoxShape3D" id="BoxShape3D_jxmqm"] -size = Vector3(14, 40, 6) - -[sub_resource type="BoxMesh" id="BoxMesh_x0tgm"] -size = Vector3(8, 40, 1) - -[sub_resource type="BoxShape3D" id="BoxShape3D_t67ef"] -size = Vector3(50, 40, 1) - -[sub_resource type="BoxMesh" id="BoxMesh_rmslh"] -size = Vector3(0.5, 6, 13.5) - -[sub_resource type="BoxMesh" id="BoxMesh_242ij"] -size = Vector3(2, 3, 3) - -[sub_resource type="BoxMesh" id="BoxMesh_niuda"] -size = Vector3(8, 6, 0.5) - -[node name="Root" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.948876, 0.315649, 0, -0.315649, 0.948876, -2.53871, 2, 9.76232) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_u86qq") - -[node name="PlayerGroup" type="Node" parent="."] - -[node name="PlayerCharacterBody3D" parent="PlayerGroup" instance=ExtResource("2_jl1he")] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.53871, 0.5, 7.26232) -script = ExtResource("3_yfuq5") - -[node name="MovementInstructionsLabel" type="Label3D" parent="PlayerGroup"] -transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, -2.47682, -0.0708016, 7.93048) -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[WASD] to move" -font = ExtResource("3_an0dt") -font_size = 48 - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="PlayerGroup" node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999858, 0, 0, 0, 0.94884, 0.315632, 0, -0.315637, 0.948825, -2.53871, 2, 9.76232) -top_level = true -script = ExtResource("4_iy6qn") -priority = 10 -follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = ExtResource("5_0ku52") -tween_on_load = false -camera_3d_resource = SubResource("Resource_jtk1d") -follow_offset = Vector3(0, 1.5, 2.5) -follow_damping = true - -[node name="NPCGroup" type="Node" parent="."] - -[node name="NPCPhantomCamera3D" type="Node3D" parent="NPCGroup"] -unique_name_in_owner = true -transform = Transform3D(0.616596, -0.109786, 0.779587, -2.23517e-08, 0.990229, 0.13945, -0.78728, -0.0859841, 0.610571, -2.98802, 1.50739, 1.19719) -script = ExtResource("4_iy6qn") -tween_resource = ExtResource("5_0ku52") -camera_3d_resource = SubResource("Resource_o161n") - -[node name="NPCDescriptionLabel" type="Label3D" parent="NPCGroup"] -transform = Transform3D(1, 0, 0, 0, 0.866026, 0.5, 0, -0.5, 0.866025, -3.04693, 0.367287, 0.953757) -text = "Input Example" -font = ExtResource("3_an0dt") - -[node name="NPCDialogueExampleLabel" type="Label3D" parent="NPCGroup"] -unique_name_in_owner = true -transform = Transform3D(1, 4.54671e-10, 1.65487e-10, 4.25644e-10, 0.939693, 0.34202, 0, -0.34202, 0.939693, -4.46738, 1.58641, -0.253679) -modulate = Color(1, 0.603922, 0.254902, 1) -text = "Press [ F ] to change camera" -font = ExtResource("3_an0dt") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="NPCGroup"] -transform = Transform3D(0.819152, 4.83851e-10, -0.573576, -3.92481e-09, 1, -6.3473e-09, 0.573576, 7.45058e-09, 0.819152, -3.46138, -0.4, 0.875321) -mesh = SubResource("BoxMesh_7tjw4") -skeleton = NodePath("../..") -surface_material_override/0 = SubResource("StandardMaterial3D_hpllm") -metadata/_edit_group_ = true - -[node name="NPCInteractionArea3D" type="Area3D" parent="NPCGroup/NPCInteractionZoneMesh"] -unique_name_in_owner = true -transform = Transform3D(1, -2.68591e-26, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) -monitorable = false - -[node name="NPCInterationCollisionShape3D" type="CollisionShape3D" parent="NPCGroup/NPCInteractionZoneMesh/NPCInteractionArea3D"] -shape = SubResource("BoxShape3D_65o6h") - -[node name="NPC" type="StaticBody3D" parent="NPCGroup"] -transform = Transform3D(1, 4.83851e-10, 0, 4.25644e-10, 1, -7.45058e-09, 0, 7.45058e-09, 1, -4.56338, 0.5, -0.272679) -script = ExtResource("7_nl3ax") - -[node name="PlayerCollisionShape3D2" type="CollisionShape3D" parent="NPCGroup/NPC"] -transform = Transform3D(1, -2.68591e-26, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) -shape = SubResource("CapsuleShape3D_tpc7d") - -[node name="NPCMesh" type="MeshInstance3D" parent="NPCGroup/NPC"] -transform = Transform3D(1, -2.68591e-26, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) -mesh = SubResource("CapsuleMesh_g0eml") -skeleton = NodePath("../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_v5iy7") - -[node name="MoveToLocation" type="Node3D" parent="NPCGroup"] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.70084, 0.5, 0.962891) - -[node name="FixedCameraTriggerZone" type="Node" parent="."] - -[node name="FixedCameraLabel" type="Label3D" parent="FixedCameraTriggerZone"] -unique_name_in_owner = true -transform = Transform3D(0.939693, 0.280167, -0.196175, 1.49012e-08, 0.573577, 0.819152, 0.34202, -0.769751, 0.538986, -0.538716, -0.247626, 3.13456) -text = "Fixed Camera -Example" -font = ExtResource("3_an0dt") - -[node name="NorthRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] -transform = Transform3D(0.38357, -0.555836, 0.737507, -0.105898, 0.766851, 0.633027, -0.917417, -0.320912, 0.235279, 6.89638, 4.73986, 0.115512) -script = ExtResource("4_iy6qn") -tween_resource = SubResource("Resource_tpvee") -camera_3d_resource = SubResource("Resource_bxbnv") - -[node name="NorthRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.45, -0.9) -priority = 5 -script = ExtResource("9_hqgwi") -area_pcam = NodePath("../NorthRoomPhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="FixedCameraTriggerZone/NorthRoomTrigger"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, -0.4) -shape = SubResource("BoxShape3D_wcrbb") - -[node name="EntryRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] -transform = Transform3D(0.258818, -0.482963, 0.836515, 1.3027e-15, 0.866025, 0.499999, -0.965924, -0.129409, 0.224143, 6.69741, 4.73364, 4.02374) -script = ExtResource("4_iy6qn") -tween_resource = SubResource("Resource_7ih0k") -camera_3d_resource = SubResource("Resource_4iyps") - -[node name="EntryRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.00003, -0.454982, 3.00572) -priority = 5 -script = ExtResource("9_hqgwi") -area_pcam = NodePath("../EntryRoomPhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="FixedCameraTriggerZone/EntryRoomTrigger"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 0, 0.2) -shape = SubResource("BoxShape3D_ctyr8") - -[node name="SouthRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] -transform = Transform3D(-0.766043, -0.492403, 0.413175, 0, 0.642787, 0.766043, -0.642786, 0.586825, -0.492403, 6.89741, 4.73364, 5.62374) -script = ExtResource("4_iy6qn") -tween_resource = SubResource("Resource_x5y0u") -camera_3d_resource = SubResource("Resource_pgiyx") - -[node name="SouthRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.45, 6.7) -priority = 5 -script = ExtResource("9_hqgwi") -area_pcam = NodePath("../SouthRoomPhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="FixedCameraTriggerZone/SouthRoomTrigger"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0.1) -shape = SubResource("BoxShape3D_ua072") - -[node name="CSGMesh3D" type="CSGMesh3D" parent="FixedCameraTriggerZone"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.14238, 1.82571, 2.88655) -mesh = SubResource("BoxMesh_ugc3s") -material = SubResource("StandardMaterial3D_68thd") - -[node name="CSGMesh3D2" type="CSGMesh3D" parent="FixedCameraTriggerZone/CSGMesh3D"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00192642, -0.0120339, 0.00494432) -operation = 2 -mesh = SubResource("BoxMesh_wphly") -material = SubResource("StandardMaterial3D_68thd") - -[node name="Environment" type="Node" parent="."] - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Environment" type="Node3D" parent="Environment"] - -[node name="Floor" parent="Environment/Environment" instance=ExtResource("10_cd0kn")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="West Wall" type="StaticBody3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16, 0.5, 0) -metadata/_edit_group_ = true -metadata/_edit_lock_ = true - -[node name="MeshInstance3D2" type="MeshInstance3D" parent="Environment/Environment/West Wall"] -mesh = SubResource("BoxMesh_gyp5s") -skeleton = NodePath("") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/Environment/West Wall"] -shape = SubResource("BoxShape3D_lfaqs") - -[node name="East Wall" type="StaticBody3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.999, 0.502, 0) -metadata/_edit_group_ = true -metadata/_edit_lock_ = true - -[node name="MeshInstance3D2" type="MeshInstance3D" parent="Environment/Environment/East Wall"] -mesh = SubResource("BoxMesh_gyp5s") -skeleton = NodePath("") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/Environment/East Wall"] -shape = SubResource("BoxShape3D_lfaqs") - -[node name="North Wall" type="StaticBody3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -6.90828) -metadata/_edit_group_ = true -metadata/_edit_lock_ = true - -[node name="MeshInstance3D2" type="MeshInstance3D" parent="Environment/Environment/North Wall"] -mesh = SubResource("BoxMesh_n70lt") -skeleton = NodePath("") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/Environment/North Wall"] -shape = SubResource("BoxShape3D_jxmqm") - -[node name="South Wall" type="StaticBody3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.25, 0.5, 9.087) -metadata/_edit_group_ = true - -[node name="MeshInstance3D3" type="MeshInstance3D" parent="Environment/Environment/South Wall"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0) -mesh = SubResource("BoxMesh_x0tgm") -skeleton = NodePath("") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/Environment/South Wall"] -shape = SubResource("BoxShape3D_t67ef") - -[node name="FixedCamOuterWall" type="CSGMesh3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 2) -use_collision = true -mesh = SubResource("BoxMesh_rmslh") - -[node name="FixedCamOuterDoorway" type="CSGMesh3D" parent="Environment/Environment/FixedCamOuterWall"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 1) -operation = 2 -mesh = SubResource("BoxMesh_242ij") - -[node name="FixedCamNorthWall" type="CSGMesh3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 2.5, 1) -use_collision = true -mesh = SubResource("BoxMesh_niuda") - -[node name="FixedCamNorthDoorway" type="CSGMesh3D" parent="Environment/Environment/FixedCamNorthWall"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.5, 0) -operation = 2 -mesh = SubResource("BoxMesh_242ij") - -[node name="FixedCamSouthWall" type="CSGMesh3D" parent="Environment/Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 2.5, 5.1) -use_collision = true -mesh = SubResource("BoxMesh_niuda") - -[node name="FixedCamSouthDoorway" type="CSGMesh3D" parent="Environment/Environment/FixedCamSouthWall"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.50541, 1.19209e-07) -operation = 2 -mesh = SubResource("BoxMesh_242ij") diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_framed_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_framed_example_scene.tscn deleted file mode 100644 index b7086c0..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_framed_example_scene.tscn +++ /dev/null @@ -1,158 +0,0 @@ -[gd_scene load_steps=11 format=3 uid="uid://cx7x48cpi8gcd"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_6uslv"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_5cpe8"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_422w7"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_4qurp"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_uw36d"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="6_fcomr"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_i060b"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_iyghi"] - -[sub_resource type="Resource" id="Resource_wg1pr"] -script = ExtResource("4_4qurp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("7_iyghi") -uv1_triplanar = true -uv1_world_triplanar = true - -[node name="Root" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.793353, 0.608762, 0, -0.608762, 0.793353, 0, 2.93468, 3.17294) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_6uslv") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Player" type="Node" parent="."] - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.99995, 0, 0, 0, 0.79324, 0.608671, 0, -0.608675, 0.793235, 0, 2.93468, 3.17294) -top_level = true -script = ExtResource("2_5cpe8") -follow_mode = 5 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = ExtResource("3_422w7") -tween_on_load = false -camera_3d_resource = SubResource("Resource_wg1pr") -follow_damping = true -follow_distance = 4.0 -dead_zone_width = 0.139 -dead_zone_height = 0.14 -show_viewfinder_in_play = true -spring_length = 4.0 - -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_uw36d")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) -script = ExtResource("6_fcomr") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_i060b")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.636134, 0.805455, -6.37532) -use_collision = true -radius = 1.71971 -height = 2.61091 -sides = 32 - -[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.54597, -0.540694, -3.39517) -use_collision = true -radius = 1.53269 -height = 2.5036 -sides = 32 - -[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.64877, -1.50101, 1.22863) -use_collision = true -radius = 1.57419 -height = 3.47475 -sides = 32 - -[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4732, 0.805455, -8.78984) -use_collision = true -radius = 0.956285 -height = 2.61091 -sides = 32 - -[node name="CSGSphere3D" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.40027, -1.69814, 3.36997) -use_collision = true -radius = 3.34732 -rings = 32 - -[node name="CSGSphere3D2" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.13768, -0.599204, -1.04651) -use_collision = true -radius = 2.65844 -rings = 32 - -[node name="CSGSphere3D3" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.7976, -0.599204, -2.42244) -use_collision = true -radius = 2.14606 -rings = 32 - -[node name="CSGTorus3D2" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.84078, -0.497663, 4.44352) -use_collision = true -inner_radius = 0.971543 -outer_radius = 2.15226 -sides = 32 -ring_sides = 18 - -[node name="CSGBox3D" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.52545, 6.53866, -12.6331) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_auy8m") - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.88916, 0.760708, -6.1376) -use_collision = true -size = Vector3(2.64182, 2.52142, 2.30997) - -[node name="CSGBox3D5" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.83837, -0.241718, 7.14677) -use_collision = true -size = Vector3(3.80964, 1.67049, 0.932048) - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.34377, 0.138478, -4.36159) -use_collision = true -size = Vector3(1.53893, 1.27695, 1.80814) - -[node name="CSGBox3D6" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.9834, 0.138478, -1.89037) -use_collision = true -size = Vector3(4.03502, 1.27695, 5.2198) - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.38147, 0.0440434, 8.36617) -use_collision = true -size = Vector3(4.57784, 1.08809, 3.11285) diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_glued_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_glued_example_scene.tscn deleted file mode 100644 index e7ad802..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_glued_example_scene.tscn +++ /dev/null @@ -1,211 +0,0 @@ -[gd_scene load_steps=15 format=3 uid="uid://d2lx45noxq685"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_7a3wq"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_158c0"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_ganw1"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_kig2n"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_caky3"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="6_b6ic4"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_kkbaa"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_i1dbs"] - -[sub_resource type="Resource" id="Resource_ucp3e"] -script = ExtResource("3_ganw1") -duration = 1.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_ab013"] -script = ExtResource("4_kig2n") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_w3olp"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cw102"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("7_i1dbs") -uv1_triplanar = true -uv1_world_triplanar = true - -[node name="Node3D" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.638767, 0.7694, 0, -0.7694, 0.638768, 0, 6.39, 7) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_7a3wq") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Player" type="Node" parent="."] - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999954, 0, 0, 0, 0.638683, 0.769345, 0, -0.769298, 0.638723, 0, 6.39, 7) -top_level = true -script = ExtResource("2_158c0") -priority = 5 -follow_mode = 1 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_ucp3e") -tween_on_load = false -camera_3d_resource = SubResource("Resource_ab013") -follow_damping = true -follow_damping_value = Vector3(0.3, 0.3, 0.3) - -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_caky3")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6.39, 7) -script = ExtResource("6_b6ic4") -enable_gravity = false - -[node name="PlayerVisual" parent="Player/PlayerCharacterBody3D" index="2"] -visible = false - -[node name="NPCs" type="Node" parent="."] - -[node name="PlayerMeshInstance3D" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.04486, 0.519002, -1.52506) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_w3olp") - -[node name="PlayerMeshInstance3D2" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.51494, 0.519, 4.06618) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_cw102") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_kkbaa")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.62737, 0.805455, -6.37532) -use_collision = true -radius = 1.71971 -height = 2.61091 -sides = 32 - -[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24.9378, 0.31181, -5.46661) -use_collision = true -radius = 2.77591 -height = 1.62362 -sides = 32 - -[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.58617, 0.31181, 6.6322) -use_collision = true -radius = 1.57419 -height = 3.47475 -sides = 32 - -[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.774, 0.201103, 2.71259) -use_collision = true -radius = 1.41311 -height = 1.40221 -sides = 32 - -[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.40488, 0.201101, 11.6804) -use_collision = true -radius = 2.21673 -height = 7.88261 -sides = 32 - -[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.20971, 0.805455, -8.78984) -use_collision = true -radius = 0.956285 -height = 2.61091 -sides = 32 - -[node name="CSGSphere3D" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.9771, -1.69814, -6.51262) -use_collision = true -radius = 3.34732 -rings = 32 - -[node name="CSGSphere3D2" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.555532, -0.599204, 8.81048) -use_collision = true -radius = 2.65844 -rings = 32 - -[node name="CSGSphere3D3" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.0611, -0.599204, -2.42244) -use_collision = true -radius = 2.14606 -rings = 32 - -[node name="CSGTorus3D" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.21187, -1.90735e-06, 0.346393) -use_collision = true -inner_radius = 1.3 -outer_radius = 2.0 -sides = 32 -ring_sides = 18 - -[node name="CSGTorus3D2" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.9283, -1.90735e-06, 7.89765) -use_collision = true -inner_radius = 0.971543 -outer_radius = 2.15226 -sides = 32 -ring_sides = 18 - -[node name="CSGBox3D" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.49828, 6.53866, -12.6331) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_auy8m") - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.15267, 0.760708, -6.1376) -use_collision = true -size = Vector3(2.64182, 2.52142, 2.30997) - -[node name="CSGBox3D5" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.3427, 0.335247, 8.22829) -use_collision = true -size = Vector3(3.80964, 1.67049, 0.932048) - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.08027, 0.138478, -4.36159) -use_collision = true -size = Vector3(1.53893, 1.27695, 1.80814) - -[node name="CSGBox3D6" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.7748, 0.138478, 5.20734) -use_collision = true -size = Vector3(4.03502, 1.27695, 5.2198) - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.1473, 1.78638, -1.60318) -use_collision = true -size = Vector3(4.57784, 4.57276, 3.11285) - -[editable path="Player/PlayerCharacterBody3D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_group_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_group_example_scene.tscn deleted file mode 100644 index c60b01d..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_group_example_scene.tscn +++ /dev/null @@ -1,180 +0,0 @@ -[gd_scene load_steps=13 format=3 uid="uid://cqy81q5p0tsda"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_3iw7y"] -[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_3d.tscn" id="2_m6p13"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_65wck"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_b0eay"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_i3ale"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_5hq8j"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_7lab4"] - -[sub_resource type="Resource" id="Resource_1iman"] -script = ExtResource("5_i3ale") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_w3olp"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cw102"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("7_7lab4") -uv1_triplanar = true -uv1_world_triplanar = true - -[node name="Node3D" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.621367, 0.78352, 0, -0.78352, 0.621367, -7.26116, 10.1812, 8.76176) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_3iw7y") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Player" type="Node" parent="."] - -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("2_m6p13")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.083587, 0.5, 2.05493) - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_targets")] -unique_name_in_owner = true -transform = Transform3D(0.999954, 0, 0, 0, 0.621285, 0.783464, 0, -0.783416, 0.621322, -7.26116, 10.1812, 8.76176) -top_level = true -script = ExtResource("3_65wck") -priority = 5 -follow_mode = 3 -follow_targets = [NodePath("../PlayerCharacterBody3D"), NodePath("../../NPCs/PlayerMeshInstance3D"), NodePath("../../NPCs/PlayerMeshInstance3D2")] -tween_resource = ExtResource("4_b0eay") -tween_on_load = false -camera_3d_resource = SubResource("Resource_1iman") -follow_damping = true -follow_distance = 5.0 -auto_follow_distance = true -auto_follow_distance_min = 5.0 -auto_follow_distance_max = 15.0 -auto_follow_distance_divisor = 20.0 -spring_length = 5.0 - -[node name="NPCs" type="Node" parent="."] - -[node name="PlayerMeshInstance3D" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.6059, 0.519002, 0.128472) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_w3olp") - -[node name="PlayerMeshInstance3D2" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.0461, 0.519, 0.249913) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_cw102") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_5hq8j")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="Wall" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.52545, 6.53866, -12.6331) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_auy8m") - -[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.6511, 0.805455, -6.37532) -use_collision = true -radius = 1.71971 -height = 2.61091 -sides = 32 - -[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.9141, 0.31181, -5.46661) -use_collision = true -radius = 2.77591 -height = 1.62362 -sides = 32 - -[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.6099, 0.31181, 6.6322) -use_collision = true -radius = 1.57419 -height = 3.47475 -sides = 32 - -[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.81402, 0.805455, -8.78984) -use_collision = true -radius = 0.956285 -height = 2.61091 -sides = 32 - -[node name="CSGSphere3D" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.95333, -1.69814, -6.51262) -use_collision = true -radius = 3.34732 -rings = 32 - -[node name="CSGSphere3D2" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.4682, -0.599204, 8.81048) -use_collision = true -radius = 2.65844 -rings = 32 - -[node name="CSGSphere3D3" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.0848, -0.599204, -2.42244) -use_collision = true -radius = 2.14606 -rings = 32 - -[node name="CSGTorus3D2" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.90455, -1.90735e-06, 7.89765) -use_collision = true -inner_radius = 0.971543 -outer_radius = 2.15226 -sides = 32 -ring_sides = 18 - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.1764, 0.760708, -6.1376) -use_collision = true -size = Vector3(2.64182, 2.52142, 2.30997) - -[node name="CSGBox3D5" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.31901, 0.335247, 8.22829) -use_collision = true -size = Vector3(3.80964, 1.67049, 0.932048) - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.94346, 0.138478, -4.36159) -use_collision = true -size = Vector3(1.53893, 1.27695, 1.80814) - -[node name="CSGBox3D6" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.7985, 0.138478, 5.20734) -use_collision = true -size = Vector3(4.03502, 1.27695, 5.2198) - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.1236, 1.78638, -1.60318) -use_collision = true -size = Vector3(4.57784, 4.57276, 3.11285) diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_path_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_path_example_scene.tscn deleted file mode 100644 index 5b4597f..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_path_example_scene.tscn +++ /dev/null @@ -1,245 +0,0 @@ -[gd_scene load_steps=25 format=3 uid="uid://oo1y1sjdmr6k"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_p8ccw"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_8itog"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_xqpq0"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_akuuo"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_0nadx"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="6_7h7mx"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="6_mkxip"] -[ext_resource type="Script" uid="uid://cgknbkjar73w" path="res://addons/phantom_camera/examples/scripts/3D/path_follow.gd" id="7_g1m51"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="8_a1h2k"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="9_rk5lh"] - -[sub_resource type="Resource" id="Resource_ofv2c"] -script = ExtResource("4_akuuo") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_01tho"] -script = ExtResource("6_mkxip") -duration = 1.2 -transition = 3 -ease = 2 - -[sub_resource type="Resource" id="Resource_syh5m"] -script = ExtResource("4_akuuo") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Curve3D" id="Curve3D_b33df"] -_data = { -"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10), -"tilts": PackedFloat32Array(0, 0) -} -point_count = 2 - -[sub_resource type="BoxShape3D" id="BoxShape3D_aovgi"] -size = Vector3(6, 0.1, 10) - -[sub_resource type="BoxMesh" id="BoxMesh_0hdeh"] -size = Vector3(6, 0.1, 10) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fsm1b"] -transparency = 1 -albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961) - -[sub_resource type="Resource" id="Resource_xci4c"] -script = ExtResource("4_akuuo") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Curve3D" id="Curve3D_8uw2x"] -_data = { -"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0), -"tilts": PackedFloat32Array(0, 0) -} -point_count = 2 - -[sub_resource type="BoxShape3D" id="BoxShape3D_ctnqu"] -size = Vector3(12, 0.1, 4) - -[sub_resource type="BoxMesh" id="BoxMesh_f6dp8"] -size = Vector3(12, 0.1, 4) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gwnkj"] -transparency = 1 -albedo_color = Color(0.568403, 0.988235, 0.762724, 0.0901961) - -[sub_resource type="BoxMesh" id="BoxMesh_7l3dh"] - -[sub_resource type="BoxMesh" id="BoxMesh_as6ok"] - -[node name="Root" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(0.999996, -0.00216283, 0.00184472, 0, 0.648938, 0.760841, -0.00284268, -0.760838, 0.648936, 0, 2.5, 1.5) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_p8ccw") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 0, 2.5, 1.5) -top_level = true -script = ExtResource("2_8itog") -priority = 10 -follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D2") -tween_resource = ExtResource("3_xqpq0") -tween_on_load = false -camera_3d_resource = SubResource("Resource_ofv2c") -follow_offset = Vector3(0, 2, 1.5) -follow_damping = true - -[node name="PlayerCharacterBody3D2" parent="." instance=ExtResource("5_0nadx")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) -script = ExtResource("6_7h7mx") - -[node name="Paths" type="Node" parent="."] - -[node name="PathPhantomCamera3D" type="Node3D" parent="Paths" node_paths=PackedStringArray("follow_target", "follow_path")] -transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.31028, 7.9199, -1.60976) -top_level = true -script = ExtResource("2_8itog") -priority = 2 -follow_mode = 4 -follow_target = NodePath("../../PlayerCharacterBody3D2") -follow_path = NodePath("../FollowPath") -tween_resource = SubResource("Resource_01tho") -camera_3d_resource = SubResource("Resource_syh5m") -follow_damping = true - -[node name="FollowPath" type="Path3D" parent="Paths"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.31028, 7.9199, -1.60976) -curve = SubResource("Curve3D_b33df") - -[node name="StraightPathFollowTrigger" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0420399, -0.45, -6.73666) -priority = 5 -script = ExtResource("7_g1m51") -path_pcam = NodePath("../PathPhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Paths/StraightPathFollowTrigger"] -shape = SubResource("BoxShape3D_aovgi") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Paths/StraightPathFollowTrigger/CollisionShape3D"] -mesh = SubResource("BoxMesh_0hdeh") -skeleton = NodePath("../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_fsm1b") -metadata/_edit_group_ = true - -[node name="PathPhantomCamera3D2" type="Node3D" parent="Paths" node_paths=PackedStringArray("follow_target", "follow_path")] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 7.9199, -13.4572) -top_level = true -visible = false -script = ExtResource("2_8itog") -priority = 2 -follow_mode = 4 -follow_target = NodePath("../../PlayerCharacterBody3D2") -follow_path = NodePath("../FollowPath2") -tween_resource = SubResource("Resource_01tho") -camera_3d_resource = SubResource("Resource_xci4c") -follow_damping = true -follow_damping_value = Vector3(0.6, 0.1, 0.1) - -[node name="FollowPath2" type="Path3D" parent="Paths"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.97141, 7.9199, -13.4572) -curve = SubResource("Curve3D_8uw2x") - -[node name="StraightPathFollowTrigger2" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0420399, 0, -13.7367) -priority = 5 -script = ExtResource("7_g1m51") -path_pcam = NodePath("../PathPhantomCamera3D2") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Paths/StraightPathFollowTrigger2"] -shape = SubResource("BoxShape3D_ctnqu") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Paths/StraightPathFollowTrigger2/CollisionShape3D"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45, 0) -mesh = SubResource("BoxMesh_f6dp8") -skeleton = NodePath("../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_gwnkj") -metadata/_edit_group_ = true - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("8_a1h2k")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="Floor3" parent="Environment" instance=ExtResource("8_a1h2k")] -transform = Transform3D(6, 0, 0, 0, 1, 0, 0, 0, 1, -0.44204, 0, 1.76334) - -[node name="Floor2" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, -0.516667, 1, -6.5) - -[node name="Floor5" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, 0.65, 1, -6.5) - -[node name="Floor4" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(2, 0, 0, 0, 3, 0, 0, 0, 1, 0.0666667, 1, -18) - -[node name="Floor6" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, -0.766667, 1, -13) -mesh = SubResource("BoxMesh_7l3dh") - -[node name="Floor8" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, -1.01667, 1, -15.5) -mesh = SubResource("BoxMesh_as6ok") - -[node name="Floor9" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, 1.15, 1, -15.5) -mesh = SubResource("BoxMesh_as6ok") - -[node name="Floor7" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] -transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, 0.9, 1, -13) -mesh = SubResource("BoxMesh_7l3dh") - -[node name="NPCDescriptionLabel" type="Label3D" parent="Environment"] -transform = Transform3D(5.21541e-08, -1, -7.7486e-07, -1.10675e-15, 2.23517e-07, 0.999999, -0.999999, -7.45058e-08, -5.68829e-14, -3.47306, 2.59595, -5.51755) -text = "Camera follows player while confined to a Path3D" -font = ExtResource("9_rk5lh") -font_size = 64 - -[node name="MovementInstructionsLabel" type="Label3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.02174, -0.455369, 0.570585) -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[WASD] to move" -font = ExtResource("9_rk5lh") -font_size = 48 diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_simple_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_simple_example_scene.tscn deleted file mode 100644 index 610e62a..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_simple_example_scene.tscn +++ /dev/null @@ -1,164 +0,0 @@ -[gd_scene load_steps=12 format=3 uid="uid://c7uyfhhnrmkbx"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_gt67h"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_4ltlo"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_hldrt"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_pqibl"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_o4k7v"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="6_8yuc5"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_m6ich"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_pagh0"] - -[sub_resource type="Resource" id="Resource_28vpp"] -script = ExtResource("3_hldrt") -duration = 1.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_axopo"] -script = ExtResource("4_pqibl") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("7_pagh0") -uv1_triplanar = true -uv1_world_triplanar = true - -[node name="Node3D2" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.906308, 0.422618, 0, -0.422618, 0.906308, -13.2122, 2.5, 10.4016) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_gt67h") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Player" type="Node" parent="."] - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999954, 0, 0, 0, 0.906188, 0.422588, 0, -0.422562, 0.906243, -13.2122, 2.5, 10.4016) -top_level = true -script = ExtResource("2_4ltlo") -priority = 10 -follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_28vpp") -tween_on_load = false -camera_3d_resource = SubResource("Resource_axopo") -follow_offset = Vector3(0, 2, 2) -follow_damping = true - -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_o4k7v")] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.2122, 0.5, 8.40162) -script = ExtResource("6_8yuc5") - -[node name="NPCs" type="Node" parent="."] - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_m6ich")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.6511, 0.805455, -6.37532) -use_collision = true -radius = 1.71971 -height = 2.61091 -sides = 32 - -[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.8332, -0.540694, -3.39517) -use_collision = true -radius = 1.53269 -height = 2.5036 -sides = 32 - -[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.936, -1.50101, 1.22863) -use_collision = true -radius = 1.57419 -height = 3.47475 -sides = 32 - -[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.81402, 0.805455, -8.78984) -use_collision = true -radius = 0.956285 -height = 2.61091 -sides = 32 - -[node name="CSGSphere3D" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.6875, -1.69814, 3.36997) -use_collision = true -radius = 3.34732 -rings = 32 - -[node name="CSGSphere3D2" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.14955, -0.599204, -1.04651) -use_collision = true -radius = 2.65844 -rings = 32 - -[node name="CSGSphere3D3" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.0848, -0.599204, -2.42244) -use_collision = true -radius = 2.14606 -rings = 32 - -[node name="CSGTorus3D2" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.44645, -0.497663, 4.44352) -use_collision = true -inner_radius = 0.971543 -outer_radius = 2.15226 -sides = 32 -ring_sides = 18 - -[node name="CSGBox3D" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.52545, 6.53866, -12.6331) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_auy8m") - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.1764, 0.760708, -6.1376) -use_collision = true -size = Vector3(2.64182, 2.52142, 2.30997) - -[node name="CSGBox3D5" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -18.1256, 0.335247, 7.14677) -use_collision = true -size = Vector3(3.80964, 1.67049, 0.932048) - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.94346, 0.138478, -4.36159) -use_collision = true -size = Vector3(1.53893, 1.27695, 1.80814) - -[node name="CSGBox3D6" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.30382, 0.138478, -1.89037) -use_collision = true -size = Vector3(4.03502, 1.27695, 5.2198) - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.04727, 0.0440434, 8.36617) -use_collision = true -size = Vector3(4.57784, 1.08809, 3.11285) diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_attribtues_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_attribtues_example_scene.tscn deleted file mode 100644 index a2a93c3..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_attribtues_example_scene.tscn +++ /dev/null @@ -1,220 +0,0 @@ -[gd_scene load_steps=22 format=3 uid="uid://bklrp02eywxsx"] - -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="1_s26cy"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="2_m2d6w"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="3_l7kg8"] -[ext_resource type="PackedScene" uid="uid://mskcwn1a1v6d" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="4_qcyfd"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_8von1"] -[ext_resource type="Script" uid="uid://bkr71vxe2t18n" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd" id="5_tarnu"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_o1fj6"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_amcmx"] -[ext_resource type="Texture2D" uid="uid://c3mskbmvnpwux" path="res://addons/phantom_camera/examples/textures/3D/target.png" id="8_rjcgw"] - -[sub_resource type="Resource" id="Resource_8fhct"] -script = ExtResource("2_m2d6w") -duration = 0.3 -transition = 2 -ease = 1 - -[sub_resource type="Resource" id="Resource_7m0fv"] -script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_i42vj"] -dof_blur_far_enabled = true -dof_blur_far_distance = 5.99 -dof_blur_near_enabled = true -dof_blur_near_distance = 0.05 -dof_blur_amount = 0.21 - -[sub_resource type="Resource" id="Resource_e7t18"] -script = ExtResource("2_m2d6w") -duration = 0.4 -transition = 2 -ease = 1 - -[sub_resource type="Resource" id="Resource_jogxh"] -script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 1.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_fvhx5"] -dof_blur_far_enabled = true -dof_blur_far_distance = 31.1 -dof_blur_near_enabled = true -dof_blur_near_distance = 1.79 - -[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_fnb35"] -dof_blur_far_enabled = true -dof_blur_far_distance = 5.99 -dof_blur_near_enabled = true -dof_blur_near_distance = 0.05 -dof_blur_amount = 0.21 - -[sub_resource type="BoxMesh" id="BoxMesh_wsigl"] -size = Vector3(1, 10, 20) - -[sub_resource type="Resource" id="Resource_afrr1"] -script = ExtResource("2_m2d6w") -duration = 0.6 -transition = 3 -ease = 1 - -[sub_resource type="Resource" id="Resource_unpfd"] -script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CylinderMesh" id="CylinderMesh_sm466"] -top_radius = 1.51 -height = 0.2 - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hp48l"] -transparency = 1 -albedo_texture = ExtResource("8_rjcgw") -uv1_scale = Vector3(1.91, 1.91, 1.91) -uv1_offset = Vector3(0.025, -0.927, 0) - -[node name="Root" type="Node3D"] - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 8.76853) -script = ExtResource("1_s26cy") -priority = 10 -follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_8fhct") -tween_on_load = false -camera_3d_resource = SubResource("Resource_7m0fv") -attributes = SubResource("CameraAttributesPractical_i42vj") -follow_damping = true -follow_distance = 3.5 -spring_length = 3.5 - -[node name="PlayerAimPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 1.47688, 6.36953) -script = ExtResource("1_s26cy") -follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_e7t18") -tween_on_load = false -camera_3d_resource = SubResource("Resource_jogxh") -attributes = SubResource("CameraAttributesPractical_fvhx5") -follow_offset = Vector3(0, 0.97, -0.399) -follow_damping_value = Vector3(0, 0, 0) -follow_distance = 1.5 -spring_length = 1.5 - -[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("4_qcyfd")] -unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 5.26853) -script = ExtResource("5_tarnu") - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 8.76853) -attributes = SubResource("CameraAttributesPractical_fnb35") - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("5_8von1") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_o1fj6")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="Wall" parent="Environment" instance=ExtResource("6_o1fj6")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.5, 4.5, 0) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall2" parent="Environment" instance=ExtResource("6_o1fj6")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.5, 4.5, 0) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall3" parent="Environment" instance=ExtResource("6_o1fj6")] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 4.5, 10.5) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall4" parent="Environment" instance=ExtResource("6_o1fj6")] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 4.5, -9.5) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="CeilingPhantomCamera3D" type="Node3D" parent="."] -unique_name_in_owner = true -transform = Transform3D(-4.37114e-08, -1, 2.98023e-08, 0, 2.98023e-08, 1, -1, 4.37114e-08, -1.3027e-15, -0.200665, 13.366, -0.162648) -script = ExtResource("1_s26cy") -tween_resource = SubResource("Resource_afrr1") -camera_3d_resource = SubResource("Resource_unpfd") - -[node name="MovementInstructionsLabel" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.0505604, -0.484909, 1.44357) -visible = false -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[WASD] to move" -font = ExtResource("7_amcmx") -font_size = 48 - -[node name="MovementInstructionsLabel3" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.0505604, -0.484909, 0.817134) -visible = false -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[Right Mouse Click] to \"aim\"" -font = ExtResource("7_amcmx") -font_size = 48 - -[node name="MovementInstructionsLabel2" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.0440154, -0.490478, -6.30248) -visible = false -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[Space] to toggle PCam" -font = ExtResource("7_amcmx") -font_size = 48 - -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0.260217, 1.60477, -9.07797) -mesh = SubResource("CylinderMesh_sm466") -surface_material_override/0 = SubResource("StandardMaterial3D_hp48l") - -[node name="MeshInstance3D3" type="MeshInstance3D" parent="."] -transform = Transform3D(-1, -8.74228e-08, 3.82137e-15, 0, -4.37114e-08, -1, 8.74228e-08, -1, 4.37114e-08, 0.0525861, 1.60477, 9.98156) -mesh = SubResource("CylinderMesh_sm466") -surface_material_override/0 = SubResource("StandardMaterial3D_hp48l") diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_example_scene.tscn deleted file mode 100644 index eb5809b..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_follow_third_person_example_scene.tscn +++ /dev/null @@ -1,191 +0,0 @@ -[gd_scene load_steps=17 format=3 uid="uid://ceelq6qrb41uf"] - -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="2_47xf2"] -[ext_resource type="Script" uid="uid://bkr71vxe2t18n" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd" id="2_uhq7m"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_whx47"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_lii5s"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_jt2lp"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_oc4q1"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_kg7u1"] -[ext_resource type="PackedScene" uid="uid://mskcwn1a1v6d" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="7_kut0u"] - -[sub_resource type="Resource" id="Resource_8fhct"] -script = ExtResource("2_47xf2") -duration = 0.3 -transition = 2 -ease = 1 - -[sub_resource type="Resource" id="Resource_7m0fv"] -script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_e7t18"] -script = ExtResource("2_47xf2") -duration = 0.3 -transition = 2 -ease = 1 - -[sub_resource type="Resource" id="Resource_jogxh"] -script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 1.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxMesh" id="BoxMesh_wsigl"] -size = Vector3(1, 10, 20) - -[sub_resource type="BoxMesh" id="BoxMesh_bj3re"] -size = Vector3(1, 7, 7) - -[sub_resource type="Resource" id="Resource_afrr1"] -script = ExtResource("2_47xf2") -duration = 0.6 -transition = 3 -ease = 1 - -[sub_resource type="Resource" id="Resource_ioijp"] -script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[node name="Root2" type="Node3D"] - -[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("7_kut0u")] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) -script = ExtResource("2_uhq7m") - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 2.25, 3.03109) -script = ExtResource("2_whx47") -priority = 10 -follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_8fhct") -tween_on_load = false -camera_3d_resource = SubResource("Resource_7m0fv") -follow_damping = true -follow_distance = 3.5 -vertical_rotation_offset = 0.523599 -spring_length = 3.5 - -[node name="PlayerAimPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.584, 1.3, 1.101) -script = ExtResource("2_whx47") -follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_e7t18") -tween_on_load = false -camera_3d_resource = SubResource("Resource_jogxh") -follow_offset = Vector3(0.584, 0.8, -0.399) -follow_distance = 1.5 -spring_length = 1.5 - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 2.25, 3.03109) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("5_oc4q1") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="Wall" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.5, 4.5, 0) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall5" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.133, 3, -6.5) -mesh = SubResource("BoxMesh_bj3re") -metadata/_edit_lock_ = true - -[node name="Wall6" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 3, 0) -mesh = SubResource("BoxMesh_bj3re") -metadata/_edit_lock_ = true - -[node name="Wall7" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 3, 0) -mesh = SubResource("BoxMesh_bj3re") -metadata/_edit_lock_ = true - -[node name="Wall2" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.5, 4.5, 0) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall3" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 4.5, 10.5) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="Wall4" parent="Environment" instance=ExtResource("4_lii5s")] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 4.5, -9.5) -mesh = SubResource("BoxMesh_wsigl") -metadata/_edit_lock_ = true - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="CeilingPhantomCamera3D" type="Node3D" parent="."] -unique_name_in_owner = true -transform = Transform3D(-4.37114e-08, -1, 2.98023e-08, 0, 2.98023e-08, 1, -1, 4.37114e-08, -1.3027e-15, -0.200665, 13.366, -0.162648) -script = ExtResource("2_whx47") -tween_resource = SubResource("Resource_afrr1") -camera_3d_resource = SubResource("Resource_ioijp") - -[node name="MovementInstructionsLabel" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.0505604, -0.484909, 1.44357) -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[WASD] to move" -font = ExtResource("7_kg7u1") -font_size = 48 - -[node name="MovementInstructionsLabel3" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.0505604, -0.484909, 0.817134) -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[Right Mouse Click] to \"aim\"" -font = ExtResource("7_kg7u1") -font_size = 48 - -[node name="MovementInstructionsLabel2" type="Label3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.0440154, -0.490478, -6.30248) -modulate = Color(0.294118, 1, 0.631373, 1) -text = "[Space] to toggle PCam" -font = ExtResource("7_kg7u1") -font_size = 48 diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_look_at_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_look_at_example_scene.tscn deleted file mode 100644 index 6fe3289..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_look_at_example_scene.tscn +++ /dev/null @@ -1,200 +0,0 @@ -[gd_scene load_steps=15 format=3 uid="uid://dsfixtpa5xwqt"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_jbmnd"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_t3gk2"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_b2lea"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_mqo2b"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_pxkua"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="6_3rtu0"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_uuxs3"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_0dyt0"] - -[sub_resource type="Resource" id="Resource_pwcgo"] -script = ExtResource("3_b2lea") -duration = 1.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_ft2w3"] -script = ExtResource("4_mqo2b") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_w3olp"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cw102"] -albedo_color = Color(0.227451, 0.337255, 0.576471, 1) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("7_0dyt0") -uv1_triplanar = true -uv1_world_triplanar = true - -[node name="Root" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(0.999765, 0.010421, -0.0189909, 0, 0.876683, 0.481069, 0.0216623, -0.480956, 0.876477, -0.137901, 4.03222, 6.36446) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_jbmnd") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="PhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("look_at_target")] -transform = Transform3D(0.999765, 0.010421, -0.018991, 0, 0.876683, 0.481069, 0.0216623, -0.480956, 0.876478, -0.137901, 4.03222, 6.36446) -script = ExtResource("2_t3gk2") -priority = 10 -look_at_mode = 2 -look_at_target = NodePath("../PlayerCharacterBody3D2") -tween_resource = SubResource("Resource_pwcgo") -tween_on_load = false -camera_3d_resource = SubResource("Resource_ft2w3") -look_at_damping = true - -[node name="PlayerCharacterBody3D2" parent="." instance=ExtResource("5_pxkua")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) -script = ExtResource("6_3rtu0") - -[node name="NPCs" type="Node" parent="."] - -[node name="PlayerMeshInstance3D" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.96028, 0.519002, -1.52506) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_w3olp") - -[node name="PlayerMeshInstance3D2" type="MeshInstance3D" parent="NPCs"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.59952, 0.519, 4.06618) -mesh = SubResource("CapsuleMesh_2h36r") -skeleton = NodePath("") -surface_material_override/0 = SubResource("StandardMaterial3D_cw102") - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("6_uuxs3")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="CSGCylinder3D" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.00548, 0.805455, -6.37532) -use_collision = true -radius = 1.71971 -height = 2.61091 -sides = 32 - -[node name="CSGCylinder3D5" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 25.5597, 0.31181, -5.46661) -use_collision = true -radius = 2.77591 -height = 1.62362 -sides = 32 - -[node name="CSGCylinder3D6" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.96428, 0.31181, 6.6322) -use_collision = true -radius = 1.57419 -height = 3.47475 -sides = 32 - -[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.3959, 0.201103, 2.71259) -use_collision = true -radius = 1.41311 -height = 1.40221 -sides = 32 - -[node name="CSGCylinder3D4" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.02677, 0.201101, 11.6804) -use_collision = true -radius = 2.21673 -height = 7.88261 -sides = 32 - -[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.8316, 0.805455, -8.78984) -use_collision = true -radius = 0.956285 -height = 2.61091 -sides = 32 - -[node name="CSGSphere3D" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.5989, -1.69814, -6.51262) -use_collision = true -radius = 3.34732 -rings = 32 - -[node name="CSGSphere3D2" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.17742, -0.599204, 8.81048) -use_collision = true -radius = 2.65844 -rings = 32 - -[node name="CSGSphere3D3" type="CSGSphere3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.4392, -0.599204, -2.42244) -use_collision = true -radius = 2.14606 -rings = 32 - -[node name="CSGTorus3D" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.58998, -1.90735e-06, 0.346393) -use_collision = true -inner_radius = 1.3 -outer_radius = 2.0 -sides = 32 -ring_sides = 18 - -[node name="CSGTorus3D2" type="CSGTorus3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 22.5502, -1.90735e-06, 7.89765) -use_collision = true -inner_radius = 0.971543 -outer_radius = 2.15226 -sides = 32 -ring_sides = 18 - -[node name="CSGBox3D" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.1202, 6.53866, -12.6331) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_auy8m") - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.53078, 0.760708, -6.1376) -use_collision = true -size = Vector3(2.64182, 2.52142, 2.30997) - -[node name="CSGBox3D5" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.9646, 0.335247, 8.22829) -use_collision = true -size = Vector3(3.80964, 1.67049, 0.932048) - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.70216, 0.138478, -4.36159) -use_collision = true -size = Vector3(1.53893, 1.27695, 1.80814) - -[node name="CSGBox3D6" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.1529, 0.138478, 5.20734) -use_collision = true -size = Vector3(4.03502, 1.27695, 5.2198) - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.7692, 1.78638, -1.60318) -use_collision = true -size = Vector3(4.57784, 4.57276, 3.11285) diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_noise_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_noise_example_scene.tscn deleted file mode 100644 index 34aac82..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_noise_example_scene.tscn +++ /dev/null @@ -1,195 +0,0 @@ -[gd_scene load_steps=21 format=3 uid="uid://d0fyuvesb472p"] - -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_25rmy"] -[ext_resource type="Script" uid="uid://x5g7kf5k2mac" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd" id="2_7nd2u"] -[ext_resource type="Script" uid="uid://cuffvge5ad4aa" path="res://addons/phantom_camera/scripts/resources/phantom_camera_noise_3d.gd" id="3_t4fhv"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="4_tnm2f"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="5_4webr"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="6_dmm4a"] -[ext_resource type="Script" uid="uid://ccmiitq0sdh7j" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_noise_emitter_3d.gd" id="7_2vtho"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="8_bw5oq"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="9_jpkpr"] -[ext_resource type="FontFile" uid="uid://dve7mgsjik4dg" path="res://addons/phantom_camera/fonts/Nunito-Regular.ttf" id="10_8pr3k"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="11_vp57v"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_yvgu3"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vc6km"] -albedo_color = Color(0.988235, 0.498039, 0.498039, 1) - -[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lsrh7"] -radius = 0.269454 - -[sub_resource type="Resource" id="Resource_lhgur"] -script = ExtResource("5_4webr") -duration = 1.0 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_ghjuj"] -script = ExtResource("6_dmm4a") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_2l4w0"] -script = ExtResource("3_t4fhv") -amplitude = 40.0 -frequency = 0.2 -randomize_noise_seed = 0 -noise_seed = 0 -rotational_noise = true -positional_noise = false -rotational_multiplier_x = 1.0 -rotational_multiplier_y = 1.0 -rotational_multiplier_z = 0.0 -positional_multiplier_x = 0.1 -positional_multiplier_y = 0.1 -positional_multiplier_z = 0.1 - -[sub_resource type="Resource" id="Resource_6tnhy"] -script = ExtResource("3_t4fhv") -amplitude = 10.0 -frequency = 20.0 -randomize_noise_seed = 0 -noise_seed = 928 -rotational_noise = true -positional_noise = false -rotational_multiplier_x = 1.0 -rotational_multiplier_y = 1.0 -rotational_multiplier_z = 0.1 -positional_multiplier_x = 1.0 -positional_multiplier_y = 1.0 -positional_multiplier_z = 1.0 - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qi01t"] -albedo_texture = ExtResource("9_jpkpr") -uv1_triplanar = true -uv1_world_triplanar = true - -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ey47a"] -bg_color = Color(0.0784314, 0.109804, 0.129412, 1) -border_width_right = 4 -border_width_bottom = 4 -border_color = Color(0.227451, 0.72549, 0.603922, 1) -corner_radius_bottom_right = 20 -expand_margin_bottom = 6.0 - -[node name="Root2" type="Node3D"] - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(-0.0372114, 0.0351643, 0.998689, -5.82077e-11, 0.999381, -0.0351886, -0.999307, -0.00130942, -0.0371883, -16.46, 0.503767, 4.249) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("1_25rmy") - -[node name="PlayerCharacterBody3D" type="CharacterBody3D" parent="."] -unique_name_in_owner = true -transform = Transform3D(0.999897, 0.0143636, 0, -0.0143636, 0.999897, 0, 0, 0, 1, -16.46, 0.503767, 4.249) -script = ExtResource("2_7nd2u") - -[node name="PlayerVisual" type="MeshInstance3D" parent="PlayerCharacterBody3D"] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.76837e-05, 0.00331134, 0) -mesh = SubResource("CapsuleMesh_yvgu3") -surface_material_override/0 = SubResource("StandardMaterial3D_vc6km") - -[node name="PlayerArea3D" type="Area3D" parent="PlayerCharacterBody3D"] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerCharacterBody3D/PlayerArea3D"] -shape = SubResource("CapsuleShape3D_lsrh7") - -[node name="PlayerCollisionShape3D" type="CollisionShape3D" parent="PlayerCharacterBody3D"] -shape = SubResource("CapsuleShape3D_lsrh7") - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.00441533, 0, 0.999915, 0, 0.999995, 0, -0.999923, 0, 0.00441529, -16.46, 0.503767, 4.249) -top_level = true -script = ExtResource("4_tnm2f") -priority = 10 -follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = SubResource("Resource_lhgur") -tween_on_load = false -camera_3d_resource = SubResource("Resource_ghjuj") -noise = SubResource("Resource_2l4w0") -noise_emitter_layer = 1 - -[node name="PlayerPhantomCameraNoiseEmitter3D" type="Node3D" parent="."] -unique_name_in_owner = true -transform = Transform3D(-4.37085e-08, 0, 0.999925, 0, 0.999995, 0, -0.999933, 0, -4.37081e-08, -16.46, 0.503767, 4.249) -script = ExtResource("7_2vtho") -noise = SubResource("Resource_6tnhy") -duration = 0.1 -decay_time = 0.1 - -[node name="Environment" type="Node" parent="."] - -[node name="Floor" parent="Environment" instance=ExtResource("8_bw5oq")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="CSGBox3D" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.525, 6.539, 2.5) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_qi01t") - -[node name="CSGBox3D3" type="CSGBox3D" parent="Environment"] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 8.83707, 6.53866, -1.80739) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_qi01t") - -[node name="CSGBox3D4" type="CSGBox3D" parent="Environment"] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -38.9392, 6.53866, -1.80739) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_qi01t") - -[node name="CSGBox3D2" type="CSGBox3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.525, 6.539, 6) -use_collision = true -size = Vector3(178.429, 14.0773, 1) -material = SubResource("StandardMaterial3D_qi01t") - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="EmitterTip" type="Panel" parent="."] -unique_name_in_owner = true -visible = false -anchors_preset = -1 -anchor_right = 0.3 -anchor_bottom = 0.1 -theme_override_styles/panel = SubResource("StyleBoxFlat_ey47a") - -[node name="Guidance" type="RichTextLabel" parent="EmitterTip"] -layout_mode = 1 -anchors_preset = -1 -anchor_top = 0.5 -anchor_right = 1.0 -anchor_bottom = 0.5 -grow_horizontal = 2 -grow_vertical = 2 -size_flags_vertical = 8 -theme_override_fonts/normal_font = ExtResource("10_8pr3k") -theme_override_fonts/bold_font = ExtResource("11_vp57v") -theme_override_font_sizes/normal_font_size = 18 -theme_override_font_sizes/bold_font_size = 24 -bbcode_enabled = true -text = "[center]Press [b]Q[/b] to trigger Noise Emitter" -fit_content = true diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_tweening_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_tweening_example_scene.tscn deleted file mode 100644 index 2470a7e..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/3d_tweening_example_scene.tscn +++ /dev/null @@ -1,293 +0,0 @@ -[gd_scene load_steps=23 format=3 uid="uid://cvnbgtbaxwj5p"] - -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="1_d55xf"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="2_d1opf"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_4whss"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_8ap1e"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_1sgnu"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="6_lr46m"] -[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="7_istoq"] -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="7_x1jex"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="8_qepee"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="9_ptb3h"] - -[sub_resource type="Resource" id="Resource_0dtvs"] -script = ExtResource("5_1sgnu") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="BoxShape3D" id="BoxShape3D_j6fha"] -size = Vector3(5, 0.1, 4) - -[sub_resource type="BoxMesh" id="BoxMesh_xg4en"] -size = Vector3(5, 0.1, 4) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2dct5"] -transparency = 1 -albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961) - -[sub_resource type="Resource" id="Resource_v8ndi"] -script = ExtResource("8_qepee") -duration = 0.6 -transition = 0 -ease = 2 - -[sub_resource type="Resource" id="Resource_kmep1"] -script = ExtResource("5_1sgnu") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_uxg44"] -script = ExtResource("8_qepee") -duration = 0.3 -transition = 1 -ease = 2 - -[sub_resource type="Resource" id="Resource_eu3bc"] -script = ExtResource("5_1sgnu") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_0nci0"] -script = ExtResource("8_qepee") -duration = 0.3 -transition = 8 -ease = 2 - -[sub_resource type="Resource" id="Resource_u0lff"] -script = ExtResource("5_1sgnu") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[sub_resource type="Resource" id="Resource_50m5g"] -script = ExtResource("8_qepee") -duration = 1.2 -transition = 10 -ease = 2 - -[sub_resource type="Resource" id="Resource_rexf8"] -script = ExtResource("5_1sgnu") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 - -[node name="Root" type="Node3D"] - -[node name="Environment" type="Node" parent="."] - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) -metadata/_edit_lock_ = true - -[node name="Floor" parent="Environment" instance=ExtResource("1_d55xf")] -transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) -metadata/_edit_lock_ = true - -[node name="MainCamera3D" type="Camera3D" parent="."] -unique_name_in_owner = true -physics_interpolation_mode = 1 -transform = Transform3D(0.999889, 0, 0, 0, 0.707092, 0.707088, 0, -0.707092, 0.707088, 0, 2.5, 3.19136) - -[node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] -process_priority = 300 -process_physics_priority = 300 -script = ExtResource("2_d1opf") - -[node name="------------------" type="Node" parent="."] - -[node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] -unique_name_in_owner = true -transform = Transform3D(0.999889, 0, 0, 0, 0.707092, 0.707088, 0, -0.707092, 0.707088, 0, 2.5, 3.19136) -top_level = true -script = ExtResource("3_4whss") -priority = 3 -follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D") -tween_resource = ExtResource("4_8ap1e") -tween_on_load = false -camera_3d_resource = SubResource("Resource_0dtvs") -follow_offset = Vector3(0, 2, 2) -follow_damping = true - -[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("6_lr46m")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 1.19136) -script = ExtResource("7_x1jex") - -[node name="-------------------" type="Node" parent="."] - -[node name="Tweening Example" type="Node3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.97) - -[node name="Linear" type="Node3D" parent="Tweening Example"] - -[node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Linear" node_paths=PackedStringArray("area_pcam")] -priority = 5 -script = ExtResource("7_istoq") -area_pcam = NodePath("../PhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Tweening Example/Linear/EntryRoomTrigger"] -shape = SubResource("BoxShape3D_j6fha") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Tweening Example/Linear/EntryRoomTrigger"] -mesh = SubResource("BoxMesh_xg4en") -skeleton = NodePath("../../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_2dct5") -metadata/_edit_group_ = true - -[node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Linear"] -transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_4whss") -tween_resource = SubResource("Resource_v8ndi") -camera_3d_resource = SubResource("Resource_kmep1") - -[node name="TweenNameLabel" type="Label3D" parent="Tweening Example/Linear"] -transform = Transform3D(1, 0, 0, 0, 0.695913, 0.718126, 0, -0.718126, 0.695913, -1.8, 0.5, 0) -text = "Transition Type: -Linear - -Duration: -0.6s" -font = ExtResource("9_ptb3h") -font_size = 48 - -[node name="Sine" type="Node3D" parent="Tweening Example"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -7.4) - -[node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Sine" node_paths=PackedStringArray("area_pcam")] -priority = 5 -script = ExtResource("7_istoq") -area_pcam = NodePath("../PhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Tweening Example/Sine/EntryRoomTrigger"] -shape = SubResource("BoxShape3D_j6fha") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Tweening Example/Sine/EntryRoomTrigger"] -mesh = SubResource("BoxMesh_xg4en") -skeleton = NodePath("../../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_2dct5") -metadata/_edit_group_ = true - -[node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Sine"] -transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_4whss") -tween_resource = SubResource("Resource_uxg44") -camera_3d_resource = SubResource("Resource_eu3bc") - -[node name="TweenNameLabel" type="Label3D" parent="Tweening Example/Sine"] -transform = Transform3D(1, 0, 0, 0, 0.695913, 0.718126, 0, -0.718126, 0.695913, 1.7, 0.5, 0) -text = "Transition Type: -Sine - -Duration: -0.3s" -font = ExtResource("9_ptb3h") -font_size = 72 - -[node name="Circ" type="Node3D" parent="Tweening Example"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -14.1) - -[node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Circ" node_paths=PackedStringArray("area_pcam")] -priority = 5 -script = ExtResource("7_istoq") -area_pcam = NodePath("../PhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Tweening Example/Circ/EntryRoomTrigger"] -shape = SubResource("BoxShape3D_j6fha") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Tweening Example/Circ/EntryRoomTrigger"] -mesh = SubResource("BoxMesh_xg4en") -skeleton = NodePath("../../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_2dct5") -metadata/_edit_group_ = true - -[node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Circ"] -transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_4whss") -tween_resource = SubResource("Resource_0nci0") -camera_3d_resource = SubResource("Resource_u0lff") - -[node name="TweenNameLabel" type="Label3D" parent="Tweening Example/Circ"] -transform = Transform3D(1, 0, 0, 0, 0.695913, 0.718126, 0, -0.718126, 0.695913, -1.8, 0.5, 0) -text = "Transition Type: -Circ - -Duration: -0.3s" -font = ExtResource("9_ptb3h") -font_size = 72 - -[node name="Back" type="Node3D" parent="Tweening Example"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -21) - -[node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Back" node_paths=PackedStringArray("area_pcam")] -priority = 5 -script = ExtResource("7_istoq") -area_pcam = NodePath("../PhantomCamera3D") -metadata/_edit_group_ = true - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Tweening Example/Back/EntryRoomTrigger"] -shape = SubResource("BoxShape3D_j6fha") - -[node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="Tweening Example/Back/EntryRoomTrigger"] -mesh = SubResource("BoxMesh_xg4en") -skeleton = NodePath("../../../../..") -surface_material_override/0 = SubResource("StandardMaterial3D_2dct5") -metadata/_edit_group_ = true - -[node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Back"] -transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, -0.8, 4.8, 3.3) -script = ExtResource("3_4whss") -tween_resource = SubResource("Resource_50m5g") -camera_3d_resource = SubResource("Resource_rexf8") - -[node name="TweenNameLabel" type="Label3D" parent="Tweening Example/Back"] -transform = Transform3D(1, 0, 0, 0, 0.695913, 0.718126, 0, -0.718126, 0.695913, 1.7, 0.5, 0) -text = "Transition Type: -Back - -Duration: -1.2s" -font = ExtResource("9_ptb3h") -font_size = 48 diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_3d.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_3d.tscn deleted file mode 100644 index b402af7..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_3d.tscn +++ /dev/null @@ -1,31 +0,0 @@ -[gd_scene load_steps=5 format=3 uid="uid://cb83in8f0tbb1"] - -[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd" id="1_pl87s"] - -[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_8efyg"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_2cfaw"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r3ldp"] -albedo_color = Color(0.988235, 0.498039, 0.498039, 1) - -[node name="PlayerCharacterBody3D2" type="CharacterBody3D"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.083587, 0.507, 2.05493) -script = ExtResource("1_pl87s") -metadata/_edit_group_ = true - -[node name="PlayerArea3D" type="Area3D" parent="."] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerArea3D"] -shape = SubResource("CapsuleShape3D_8efyg") - -[node name="PlayerCollisionShape3D" type="CollisionShape3D" parent="."] -shape = SubResource("CapsuleShape3D_8efyg") - -[node name="PlayerVisual" type="Node3D" parent="."] -unique_name_in_owner = true - -[node name="PlayerModel" type="MeshInstance3D" parent="PlayerVisual"] -mesh = SubResource("CapsuleMesh_2cfaw") -skeleton = NodePath("../..") -surface_material_override/0 = SubResource("StandardMaterial3D_r3ldp") diff --git a/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_third_person_3d.tscn b/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_third_person_3d.tscn deleted file mode 100644 index 9285cbb..0000000 --- a/addons/phantom_camera/examples/example_scenes/3D-4.4/sub_scenes/playable_character_third_person_3d.tscn +++ /dev/null @@ -1,43 +0,0 @@ -[gd_scene load_steps=6 format=3 uid="uid://bhd1kwv2fwj1y"] - -[ext_resource type="Script" uid="uid://bkr71vxe2t18n" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd" id="1_skas8"] - -[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_s61dn"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_47f0o"] - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mv4do"] -albedo_color = Color(0.988235, 0.498039, 0.498039, 1) - -[sub_resource type="PrismMesh" id="PrismMesh_wg1x3"] -size = Vector3(0.5, 0.5, 0.3) - -[node name="PlayerCharacterBody3D" type="CharacterBody3D"] -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, -0.0163251) -collision_layer = 2 -script = ExtResource("1_skas8") -metadata/_edit_group_ = true - -[node name="PlayerArea3D" type="Area3D" parent="."] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerArea3D"] -shape = SubResource("CapsuleShape3D_s61dn") - -[node name="PlayerCollisionShape3D" type="CollisionShape3D" parent="."] -shape = SubResource("CapsuleShape3D_s61dn") - -[node name="PlayerVisual" type="Node3D" parent="."] -unique_name_in_owner = true - -[node name="PlayerMeshInstance3D" type="MeshInstance3D" parent="PlayerVisual"] -transform = Transform3D(1, 0, 0, 0, 1, 4.65661e-10, 0, 0, 1, 0, 0, 0) -mesh = SubResource("CapsuleMesh_47f0o") -skeleton = NodePath("../..") -surface_material_override/0 = SubResource("StandardMaterial3D_mv4do") - -[node name="PlayerDirection" type="MeshInstance3D" parent="PlayerVisual"] -unique_name_in_owner = true -transform = Transform3D(1, 0, 0, -9.31323e-10, 1, 4.65661e-10, 2.98023e-08, 0, 1, -0.0156226, 1.08631, 0) -mesh = SubResource("PrismMesh_wg1x3") -skeleton = NodePath("../..") -surface_material_override/0 = SubResource("StandardMaterial3D_mv4do") diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_example_scene.tscn index 5886011..37f3cbf 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_example_scene.tscn @@ -1,41 +1,21 @@ -[gd_scene load_steps=40 format=3 uid="uid://ci12ytew5vwty"] +[gd_scene load_steps=40 format=3 uid="uid://cypbptekk8etg"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_wn7ww"] -[ext_resource type="Script" uid="uid://uvw6pg1ut0ms" path="res://addons/phantom_camera/examples/scripts/3D/npc.gd" id="2_2n1da"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="2_e7gxt"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="2_tvx5n"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_y3dy8"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="3_f5qrw"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_a27nb"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_m2vbn"] -[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="4_moad5"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="7_jitt8"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_u86qq"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="2_jl1he"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="3_an0dt"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="4_iy6qn"] +[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="5_0ku52"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="6_prr6u"] +[ext_resource type="Script" uid="uid://uvw6pg1ut0ms" path="res://addons/phantom_camera/examples/scripts/3D/npc.gd" id="7_nl3ax"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="8_xvqcg"] +[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="9_hqgwi"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="10_cd0kn"] [sub_resource type="Resource" id="Resource_jtk1d"] -script = ExtResource("4_m2vbn") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_prr6u") [sub_resource type="Resource" id="Resource_o161n"] -script = ExtResource("4_m2vbn") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_prr6u") [sub_resource type="BoxMesh" id="BoxMesh_7tjw4"] size = Vector3(2, 0.5, 4) @@ -55,67 +35,31 @@ size = Vector3(2, 0.5, 4) albedo_color = Color(0.988235, 0.478431, 0.905882, 1) [sub_resource type="Resource" id="Resource_tpvee"] -script = ExtResource("7_jitt8") +script = ExtResource("8_xvqcg") duration = 0.0 -transition = 0 -ease = 2 [sub_resource type="Resource" id="Resource_bxbnv"] -script = ExtResource("4_m2vbn") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_prr6u") [sub_resource type="BoxShape3D" id="BoxShape3D_wcrbb"] size = Vector3(6.8, 0.1, 5.4) [sub_resource type="Resource" id="Resource_7ih0k"] -script = ExtResource("7_jitt8") +script = ExtResource("8_xvqcg") duration = 0.0 -transition = 0 -ease = 2 [sub_resource type="Resource" id="Resource_4iyps"] -script = ExtResource("4_m2vbn") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_prr6u") [sub_resource type="BoxShape3D" id="BoxShape3D_ctyr8"] size = Vector3(7.4, 0.1, 3.6) [sub_resource type="Resource" id="Resource_x5y0u"] -script = ExtResource("7_jitt8") +script = ExtResource("8_xvqcg") duration = 0.0 -transition = 0 -ease = 2 [sub_resource type="Resource" id="Resource_pgiyx"] -script = ExtResource("4_m2vbn") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_prr6u") [sub_resource type="BoxShape3D" id="BoxShape3D_ua072"] size = Vector3(6.8, 0.1, 3.6) @@ -160,16 +104,17 @@ size = Vector3(8, 6, 0.5) [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.948876, 0.315649, 0, -0.315649, 0.948876, -2.53871, 2, 9.76232) +physics_interpolation_mode = 1 +transform = Transform3D(0.999858, 0, 0, 0, 0.94884, 0.315632, 0, -0.315637, 0.948825, -2.53871, 2, 9.76232) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_wn7ww") +script = ExtResource("1_u86qq") [node name="PlayerGroup" type="Node" parent="."] -[node name="PlayerCharacterBody3D" parent="PlayerGroup" instance=ExtResource("2_tvx5n")] +[node name="PlayerCharacterBody3D" parent="PlayerGroup" instance=ExtResource("2_jl1he")] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.53871, 0.5, 7.26232) @@ -177,43 +122,45 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.53871, 0.5, 7.26232) transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, -2.47682, -0.0708016, 7.93048) modulate = Color(0.294118, 1, 0.631373, 1) text = "[WASD] to move" -font = ExtResource("2_e7gxt") +font = ExtResource("3_an0dt") font_size = 48 [node name="PlayerPhantomCamera3D" type="Node3D" parent="PlayerGroup" node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true transform = Transform3D(0.999858, 0, 0, 0, 0.94884, 0.315632, 0, -0.315637, 0.948825, -2.53871, 2, 9.76232) top_level = true -script = ExtResource("2_y3dy8") +script = ExtResource("4_iy6qn") priority = 10 follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") -tween_resource = ExtResource("4_a27nb") +follow_target = NodePath("../PlayerCharacterBody3D") +tween_resource = ExtResource("5_0ku52") tween_on_load = false camera_3d_resource = SubResource("Resource_jtk1d") follow_offset = Vector3(0, 1.5, 2.5) follow_damping = true +align_transform_with_view = Callable() +align_position_with_view = Callable() [node name="NPCGroup" type="Node" parent="."] [node name="NPCPhantomCamera3D" type="Node3D" parent="NPCGroup"] unique_name_in_owner = true transform = Transform3D(0.616596, -0.109786, 0.779587, -2.23517e-08, 0.990229, 0.13945, -0.78728, -0.0859841, 0.610571, -2.98802, 1.50739, 1.19719) -script = ExtResource("2_y3dy8") -tween_resource = ExtResource("4_a27nb") +script = ExtResource("4_iy6qn") +tween_resource = ExtResource("5_0ku52") camera_3d_resource = SubResource("Resource_o161n") [node name="NPCDescriptionLabel" type="Label3D" parent="NPCGroup"] transform = Transform3D(1, 0, 0, 0, 0.866026, 0.5, 0, -0.5, 0.866025, -3.04693, 0.367287, 0.953757) text = "Input Example" -font = ExtResource("2_e7gxt") +font = ExtResource("3_an0dt") [node name="NPCDialogueExampleLabel" type="Label3D" parent="NPCGroup"] unique_name_in_owner = true transform = Transform3D(1, 4.54671e-10, 1.65487e-10, 4.25644e-10, 0.939693, 0.34202, 0, -0.34202, 0.939693, -4.46738, 1.58641, -0.253679) modulate = Color(1, 0.603922, 0.254902, 1) text = "Press [ F ] to change camera" -font = ExtResource("2_e7gxt") +font = ExtResource("3_an0dt") [node name="NPCInteractionZoneMesh" type="MeshInstance3D" parent="NPCGroup"] transform = Transform3D(0.819152, 4.83851e-10, -0.573576, -3.92481e-09, 1, -6.3473e-09, 0.573576, 7.45058e-09, 0.819152, -3.46138, -0.4, 0.875321) @@ -232,7 +179,7 @@ shape = SubResource("BoxShape3D_65o6h") [node name="NPC" type="StaticBody3D" parent="NPCGroup"] transform = Transform3D(1, 4.83851e-10, 0, 4.25644e-10, 1, -7.45058e-09, 0, 7.45058e-09, 1, -4.56338, 0.5, -0.272679) -script = ExtResource("2_2n1da") +script = ExtResource("7_nl3ax") [node name="PlayerCollisionShape3D2" type="CollisionShape3D" parent="NPCGroup/NPC"] transform = Transform3D(1, -2.68591e-26, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) @@ -255,18 +202,18 @@ unique_name_in_owner = true transform = Transform3D(0.939693, 0.280167, -0.196175, 1.49012e-08, 0.573577, 0.819152, 0.34202, -0.769751, 0.538986, -0.538716, -0.247626, 3.13456) text = "Fixed Camera Example" -font = ExtResource("2_e7gxt") +font = ExtResource("3_an0dt") [node name="NorthRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] transform = Transform3D(0.38357, -0.555836, 0.737507, -0.105898, 0.766851, 0.633027, -0.917417, -0.320912, 0.235279, 6.89638, 4.73986, 0.115512) -script = ExtResource("2_y3dy8") +script = ExtResource("4_iy6qn") tween_resource = SubResource("Resource_tpvee") camera_3d_resource = SubResource("Resource_bxbnv") [node name="NorthRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.45, -0.9) priority = 5 -script = ExtResource("4_moad5") +script = ExtResource("9_hqgwi") area_pcam = NodePath("../NorthRoomPhantomCamera3D") metadata/_edit_group_ = true @@ -276,14 +223,14 @@ shape = SubResource("BoxShape3D_wcrbb") [node name="EntryRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] transform = Transform3D(0.258818, -0.482963, 0.836515, 1.3027e-15, 0.866025, 0.499999, -0.965924, -0.129409, 0.224143, 6.69741, 4.73364, 4.02374) -script = ExtResource("2_y3dy8") +script = ExtResource("4_iy6qn") tween_resource = SubResource("Resource_7ih0k") camera_3d_resource = SubResource("Resource_4iyps") [node name="EntryRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.00003, -0.454982, 3.00572) priority = 5 -script = ExtResource("4_moad5") +script = ExtResource("9_hqgwi") area_pcam = NodePath("../EntryRoomPhantomCamera3D") metadata/_edit_group_ = true @@ -293,14 +240,14 @@ shape = SubResource("BoxShape3D_ctyr8") [node name="SouthRoomPhantomCamera3D" type="Node3D" parent="FixedCameraTriggerZone"] transform = Transform3D(-0.766043, -0.492403, 0.413175, 0, 0.642787, 0.766043, -0.642786, 0.586825, -0.492403, 6.89741, 4.73364, 5.62374) -script = ExtResource("2_y3dy8") +script = ExtResource("4_iy6qn") tween_resource = SubResource("Resource_x5y0u") camera_3d_resource = SubResource("Resource_pgiyx") [node name="SouthRoomTrigger" type="Area3D" parent="FixedCameraTriggerZone" node_paths=PackedStringArray("area_pcam")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.45, 6.7) priority = 5 -script = ExtResource("4_moad5") +script = ExtResource("9_hqgwi") area_pcam = NodePath("../SouthRoomPhantomCamera3D") metadata/_edit_group_ = true @@ -327,7 +274,7 @@ metadata/_edit_lock_ = true [node name="Environment" type="Node3D" parent="Environment"] -[node name="Floor" parent="Environment/Environment" instance=ExtResource("3_f5qrw")] +[node name="Floor" parent="Environment/Environment" instance=ExtResource("10_cd0kn")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -408,5 +355,3 @@ mesh = SubResource("BoxMesh_niuda") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.50541, 1.19209e-07) operation = 2 mesh = SubResource("BoxMesh_242ij") - -[editable path="PlayerGroup/PlayerCharacterBody3D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn index 0be8a65..b341d67 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn @@ -1,28 +1,18 @@ -[gd_scene load_steps=10 format=3 uid="uid://c4llb3gsbfv1a"] +[gd_scene load_steps=10 format=3 uid="uid://cx7x48cpi8gcd"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_7824u"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_g1bv4"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_420vh"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_oqbub"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_t4fso"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="5_c0upu"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_f2w3x"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_6uslv"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_5cpe8"] +[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_422w7"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_4qurp"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_uw36d"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_i060b"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_iyghi"] [sub_resource type="Resource" id="Resource_wg1pr"] -script = ExtResource("4_oqbub") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_4qurp") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("5_c0upu") +albedo_texture = ExtResource("7_iyghi") uv1_triplanar = true uv1_world_triplanar = true @@ -30,12 +20,13 @@ uv1_world_triplanar = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.793353, 0.608762, 0, -0.608762, 0.793353, 0.083587, 2.94168, 5.22787) +physics_interpolation_mode = 1 +transform = Transform3D(0.99995, 0, 0, 0, 0.79324, 0.608671, 0, -0.608675, 0.793235, 0, 2.934684, 3.17294) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_7824u") +script = ExtResource("1_6uslv") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) @@ -45,26 +36,29 @@ metadata/_edit_lock_ = true [node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.99995, 0, 0, 0, 0.79324, 0.608671, 0, -0.608675, 0.793235, 0, 2.43468, 3.17294) +transform = Transform3D(0.99995, 0, 0, 0, 0.79324, 0.608671, 0, -0.608675, 0.793235, 0, 2.934684, 3.17294) top_level = true -script = ExtResource("2_g1bv4") +script = ExtResource("2_5cpe8") follow_mode = 5 -follow_target = NodePath("../PlayerCharacterBody3D2/PlayerVisual") -tween_resource = ExtResource("3_420vh") +follow_target = NodePath("../PlayerCharacterBody3D") +tween_resource = ExtResource("3_422w7") tween_on_load = false camera_3d_resource = SubResource("Resource_wg1pr") follow_damping = true follow_distance = 4.0 -dead_zone_width = 0.161 -dead_zone_height = 0.386 +dead_zone_width = 0.139 +dead_zone_height = 0.14 show_viewfinder_in_play = true spring_length = 4.0 +align_transform_with_view = Callable() +align_position_with_view = Callable() -[node name="PlayerCharacterBody3D2" parent="Player" instance=ExtResource("5_f2w3x")] +[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_uw36d")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("4_t4fso")] +[node name="Floor" parent="Environment" instance=ExtResource("6_i060b")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -152,5 +146,3 @@ size = Vector3(4.03502, 1.27695, 5.2198) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.38147, 0.0440434, 8.36617) use_collision = true size = Vector3(4.57784, 1.08809, 3.11285) - -[editable path="Player/PlayerCharacterBody3D2"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_glued_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_glued_example_scene.tscn index 0fbcc3b..51a6401 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_glued_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_glued_example_scene.tscn @@ -1,31 +1,18 @@ -[gd_scene load_steps=14 format=3 uid="uid://dw2yflu7up2rr"] +[gd_scene load_steps=14 format=3 uid="uid://d2lx45noxq685"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_pmeux"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_q1ygp"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_hpix1"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_8qqha"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_evdoo"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_vqgn5"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="5_wr3bq"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_7a3wq"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_158c0"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_ganw1"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_kig2n"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_caky3"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_kkbaa"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_i1dbs"] [sub_resource type="Resource" id="Resource_ucp3e"] -script = ExtResource("3_hpix1") -duration = 1.0 -transition = 0 -ease = 2 +script = ExtResource("3_ganw1") [sub_resource type="Resource" id="Resource_ab013"] -script = ExtResource("4_evdoo") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_kig2n") [sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] @@ -36,7 +23,7 @@ albedo_color = Color(0.227451, 0.337255, 0.576471, 1) albedo_color = Color(0.227451, 0.337255, 0.576471, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("5_wr3bq") +albedo_texture = ExtResource("7_i1dbs") uv1_triplanar = true uv1_world_triplanar = true @@ -44,12 +31,13 @@ uv1_world_triplanar = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.638767, 0.7694, 0, -0.7694, 0.638768, 0, 6.39, 7) +physics_interpolation_mode = 1 +transform = Transform3D(0.999954, 0, 0, 0, 0.638683, 0.769345, 0, -0.769298, 0.638723, 0, 6.39, 7) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_pmeux") +script = ExtResource("1_7a3wq") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) @@ -61,17 +49,19 @@ metadata/_edit_lock_ = true unique_name_in_owner = true transform = Transform3D(0.999954, 0, 0, 0, 0.638683, 0.769345, 0, -0.769298, 0.638723, 0, 6.39, 7) top_level = true -script = ExtResource("2_q1ygp") +script = ExtResource("2_158c0") priority = 5 follow_mode = 1 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_ucp3e") tween_on_load = false camera_3d_resource = SubResource("Resource_ab013") follow_damping = true follow_damping_value = Vector3(0.3, 0.3, 0.3) +align_transform_with_view = Callable() +align_position_with_view = Callable() -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_vqgn5")] +[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_caky3")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6.39, 7) enable_gravity = false @@ -94,7 +84,7 @@ surface_material_override/0 = SubResource("StandardMaterial3D_cw102") [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("4_8qqha")] +[node name="Floor" parent="Environment" instance=ExtResource("6_kkbaa")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_group_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_group_example_scene.tscn index 29eb009..4d67690 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_group_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_group_example_scene.tscn @@ -1,25 +1,15 @@ -[gd_scene load_steps=13 format=3 uid="uid://dbfiy6svpcqap"] +[gd_scene load_steps=13 format=3 uid="uid://cqy81q5p0tsda"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="1_r00ve"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_pi7mp"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="2_wnlkq"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_1eb12"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="3_a5igg"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="3_wr1tj"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_70gws"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_3iw7y"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="2_m6p13"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_65wck"] +[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_b0eay"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_i3ale"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_5hq8j"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_7lab4"] [sub_resource type="Resource" id="Resource_1iman"] -script = ExtResource("5_70gws") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_i3ale") [sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] @@ -30,7 +20,7 @@ albedo_color = Color(0.227451, 0.337255, 0.576471, 1) albedo_color = Color(0.227451, 0.337255, 0.576471, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("3_a5igg") +albedo_texture = ExtResource("7_7lab4") uv1_triplanar = true uv1_world_triplanar = true @@ -38,12 +28,13 @@ uv1_world_triplanar = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.906308, 0.422618, 0, -0.422618, 0.906308, -7.26116, 5.72974, 12.279) +physics_interpolation_mode = 1 +transform = Transform3D(0.999954, 0, 0, 0, 0.621285, 0.783464, 0, -0.783416, 0.621322, -7.2611566, 10.181164, 8.761762) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("3_wr1tj") +script = ExtResource("1_3iw7y") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) @@ -51,17 +42,18 @@ metadata/_edit_lock_ = true [node name="Player" type="Node" parent="."] -[node name="PlayerCharacterBody3D2" parent="Player" instance=ExtResource("2_wnlkq")] +[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("2_m6p13")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.083587, 0.5, 2.05493) [node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_targets")] unique_name_in_owner = true -transform = Transform3D(0.999954, 0, 0, 0, 0.906188, 0.422588, 0, -0.422562, 0.906243, -7.30295, 5.45858, 11.2744) +transform = Transform3D(0.999954, 0, 0, 0, 0.621285, 0.783464, 0, -0.783416, 0.621322, -7.2611566, 10.181164, 8.761762) top_level = true -script = ExtResource("2_pi7mp") +script = ExtResource("3_65wck") priority = 5 follow_mode = 3 -follow_targets = [NodePath("../PlayerCharacterBody3D2"), NodePath("../../NPCs/PlayerMeshInstance3D"), NodePath("../../NPCs/PlayerMeshInstance3D2")] -tween_resource = ExtResource("3_1eb12") +follow_targets = [NodePath("../PlayerCharacterBody3D"), NodePath("../../NPCs/PlayerMeshInstance3D"), NodePath("../../NPCs/PlayerMeshInstance3D2")] +tween_resource = ExtResource("4_b0eay") tween_on_load = false camera_3d_resource = SubResource("Resource_1iman") follow_damping = true @@ -71,6 +63,8 @@ auto_follow_distance_min = 5.0 auto_follow_distance_max = 15.0 auto_follow_distance_divisor = 20.0 spring_length = 5.0 +align_transform_with_view = Callable() +align_position_with_view = Callable() [node name="NPCs" type="Node" parent="."] @@ -88,7 +82,7 @@ surface_material_override/0 = SubResource("StandardMaterial3D_cw102") [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("1_r00ve")] +[node name="Floor" parent="Environment" instance=ExtResource("6_5hq8j")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -176,5 +170,3 @@ size = Vector3(4.03502, 1.27695, 5.2198) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.1236, 1.78638, -1.60318) use_collision = true size = Vector3(4.57784, 4.57276, 3.11285) - -[editable path="Player/PlayerCharacterBody3D2"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_path_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_path_example_scene.tscn index e2d196a..e0465aa 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_path_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_path_example_scene.tscn @@ -1,46 +1,25 @@ -[gd_scene load_steps=24 format=3 uid="uid://dxx7ngi0emt8h"] +[gd_scene load_steps=24 format=3 uid="uid://oo1y1sjdmr6k"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_lm5n8"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_bd7x3"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_od2r4"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_dfdlo"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_hni7n"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="4_lfwkm"] -[ext_resource type="Script" uid="uid://cgknbkjar73w" path="res://addons/phantom_camera/examples/scripts/3D/path_follow.gd" id="5_vdqkm"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_vms5c"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="6_obo83"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_p8ccw"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_8itog"] +[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="3_xqpq0"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_akuuo"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_0nadx"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="6_mkxip"] +[ext_resource type="Script" uid="uid://cgknbkjar73w" path="res://addons/phantom_camera/examples/scripts/3D/path_follow.gd" id="7_g1m51"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="8_a1h2k"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="9_rk5lh"] [sub_resource type="Resource" id="Resource_ofv2c"] -script = ExtResource("4_hni7n") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_akuuo") [sub_resource type="Resource" id="Resource_01tho"] -script = ExtResource("4_lfwkm") +script = ExtResource("6_mkxip") duration = 1.2 transition = 3 -ease = 2 [sub_resource type="Resource" id="Resource_syh5m"] -script = ExtResource("4_hni7n") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_akuuo") [sub_resource type="Curve3D" id="Curve3D_b33df"] _data = { @@ -60,17 +39,7 @@ transparency = 1 albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961) [sub_resource type="Resource" id="Resource_xci4c"] -script = ExtResource("4_hni7n") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_akuuo") [sub_resource type="Curve3D" id="Curve3D_8uw2x"] _data = { @@ -97,12 +66,13 @@ albedo_color = Color(0.568403, 0.988235, 0.762724, 0.0901961) [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(0.999996, -0.00216283, 0.00184472, 0, 0.648938, 0.760841, -0.00284268, -0.760838, 0.648936, 0, 2.507, 1.5) +physics_interpolation_mode = 1 +transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 0, 2.5, 1.5) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_lm5n8") +script = ExtResource("1_p8ccw") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) @@ -110,34 +80,38 @@ metadata/_edit_lock_ = true [node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 0, 2.507, 1.5) +transform = Transform3D(0.999807, -0.00216249, 0.00184445, 0, 0.648836, 0.760728, -0.00284214, -0.760718, 0.648839, 0, 2.5, 1.5) top_level = true -script = ExtResource("3_bd7x3") +script = ExtResource("2_8itog") priority = 10 follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D2/PlayerVisual") -tween_resource = ExtResource("3_od2r4") +follow_target = NodePath("../PlayerCharacterBody3D") +tween_resource = ExtResource("3_xqpq0") tween_on_load = false camera_3d_resource = SubResource("Resource_ofv2c") follow_offset = Vector3(0, 2, 1.5) follow_damping = true +align_transform_with_view = Callable() +align_position_with_view = Callable() -[node name="PlayerCharacterBody3D2" parent="." instance=ExtResource("5_vms5c")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.507, 0) +[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("5_0nadx")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="Paths" type="Node" parent="."] [node name="PathPhantomCamera3D" type="Node3D" parent="Paths" node_paths=PackedStringArray("follow_target", "follow_path")] transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.31028, 7.9199, -1.60976) top_level = true -script = ExtResource("3_bd7x3") +script = ExtResource("2_8itog") priority = 2 follow_mode = 4 -follow_target = NodePath("../../PlayerCharacterBody3D2/PlayerVisual") +follow_target = NodePath("../../PlayerCharacterBody3D") follow_path = NodePath("../FollowPath") tween_resource = SubResource("Resource_01tho") camera_3d_resource = SubResource("Resource_syh5m") follow_damping = true +align_transform_with_view = Callable() +align_position_with_view = Callable() [node name="FollowPath" type="Path3D" parent="Paths"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.31028, 7.9199, -1.60976) @@ -146,7 +120,7 @@ curve = SubResource("Curve3D_b33df") [node name="StraightPathFollowTrigger" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0420399, -0.45, -6.73666) priority = 5 -script = ExtResource("5_vdqkm") +script = ExtResource("7_g1m51") path_pcam = NodePath("../PathPhantomCamera3D") metadata/_edit_group_ = true @@ -162,16 +136,17 @@ metadata/_edit_group_ = true [node name="PathPhantomCamera3D2" type="Node3D" parent="Paths" node_paths=PackedStringArray("follow_target", "follow_path")] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 7.9199, -13.4572) top_level = true -visible = false -script = ExtResource("3_bd7x3") +script = ExtResource("2_8itog") priority = 2 follow_mode = 4 -follow_target = NodePath("../../PlayerCharacterBody3D2/PlayerVisual") +follow_target = NodePath("../../PlayerCharacterBody3D") follow_path = NodePath("../FollowPath2") tween_resource = SubResource("Resource_01tho") camera_3d_resource = SubResource("Resource_xci4c") follow_damping = true follow_damping_value = Vector3(0.6, 0.1, 0.1) +align_transform_with_view = Callable() +align_position_with_view = Callable() [node name="FollowPath2" type="Path3D" parent="Paths"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.97141, 7.9199, -13.4572) @@ -180,7 +155,7 @@ curve = SubResource("Curve3D_8uw2x") [node name="StraightPathFollowTrigger2" type="Area3D" parent="Paths" node_paths=PackedStringArray("path_pcam")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0420399, 0, -13.7367) priority = 5 -script = ExtResource("5_vdqkm") +script = ExtResource("7_g1m51") path_pcam = NodePath("../PathPhantomCamera3D2") metadata/_edit_group_ = true @@ -196,49 +171,47 @@ metadata/_edit_group_ = true [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("4_dfdlo")] +[node name="Floor" parent="Environment" instance=ExtResource("8_a1h2k")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true -[node name="Floor3" parent="Environment" instance=ExtResource("4_dfdlo")] +[node name="Floor3" parent="Environment" instance=ExtResource("8_a1h2k")] transform = Transform3D(6, 0, 0, 0, 1, 0, 0, 0, 1, -0.44204, 0, 1.76334) -[node name="Floor2" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor2" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, -0.516667, 1, -6.5) -[node name="Floor5" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor5" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 14, 0.65, 1, -6.5) -[node name="Floor4" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor4" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(2, 0, 0, 0, 3, 0, 0, 0, 1, 0.0666667, 1, -18) -[node name="Floor6" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor6" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, -0.766667, 1, -13) mesh = SubResource("BoxMesh_7l3dh") -[node name="Floor8" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor8" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, -1.01667, 1, -15.5) mesh = SubResource("BoxMesh_as6ok") -[node name="Floor9" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor9" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.166667, 0, 0, 0, 3, 0, 0, 0, 6, 1.15, 1, -15.5) mesh = SubResource("BoxMesh_as6ok") -[node name="Floor7" parent="Environment/Floor3" instance=ExtResource("4_dfdlo")] +[node name="Floor7" parent="Environment/Floor3" instance=ExtResource("8_a1h2k")] transform = Transform3D(0.333333, 0, 0, 0, 3, 0, 0, 0, 1, 0.9, 1, -13) mesh = SubResource("BoxMesh_7l3dh") [node name="NPCDescriptionLabel" type="Label3D" parent="Environment"] transform = Transform3D(5.21541e-08, -1, -7.7486e-07, -1.10675e-15, 2.23517e-07, 0.999999, -0.999999, -7.45058e-08, -5.68829e-14, -3.47306, 2.59595, -5.51755) text = "Camera follows player while confined to a Path3D" -font = ExtResource("6_obo83") +font = ExtResource("9_rk5lh") font_size = 64 [node name="MovementInstructionsLabel" type="Label3D" parent="Environment"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.02174, -0.455369, 0.570585) modulate = Color(0.294118, 1, 0.631373, 1) text = "[WASD] to move" -font = ExtResource("6_obo83") +font = ExtResource("9_rk5lh") font_size = 48 - -[editable path="PlayerCharacterBody3D2"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_simple_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_simple_example_scene.tscn index a3da80d..002e0b9 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_simple_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_simple_example_scene.tscn @@ -1,34 +1,21 @@ -[gd_scene load_steps=11 format=3 uid="uid://buglvjwpn85ny"] +[gd_scene load_steps=11 format=3 uid="uid://c7uyfhhnrmkbx"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_3tok8"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_grjck"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_j3f4l"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_4u2y6"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_sielv"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="5_1tybo"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_7ywxt"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_gt67h"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_4ltlo"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_hldrt"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_pqibl"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_o4k7v"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_m6ich"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_pagh0"] [sub_resource type="Resource" id="Resource_28vpp"] -script = ExtResource("3_j3f4l") -duration = 1.0 -transition = 0 -ease = 2 +script = ExtResource("3_hldrt") [sub_resource type="Resource" id="Resource_axopo"] -script = ExtResource("4_sielv") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_pqibl") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("5_1tybo") +albedo_texture = ExtResource("7_pagh0") uv1_triplanar = true uv1_world_triplanar = true @@ -36,12 +23,13 @@ uv1_world_triplanar = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.906308, 0.422618, 0, -0.422618, 0.906308, -13.2122, 2.5, 10.4016) +physics_interpolation_mode = 1 +transform = Transform3D(0.999954, 0, 0, 0, 0.906188, 0.422588, 0, -0.422562, 0.906243, -13.2122, 2.5, 10.40162) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_3tok8") +script = ExtResource("1_gt67h") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) @@ -51,19 +39,21 @@ metadata/_edit_lock_ = true [node name="PlayerPhantomCamera3D" type="Node3D" parent="Player" node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999954, 0, 0, 0, 0.906188, 0.422588, 0, -0.422562, 0.906243, -13.2122, 2.5, 10.4016) +transform = Transform3D(0.999954, 0, 0, 0, 0.906188, 0.422588, 0, -0.422562, 0.906243, -13.2122, 2.5, 10.40162) top_level = true -script = ExtResource("2_grjck") +script = ExtResource("2_4ltlo") priority = 10 follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_28vpp") tween_on_load = false camera_3d_resource = SubResource("Resource_axopo") follow_offset = Vector3(0, 2, 2) follow_damping = true +align_transform_with_view = Callable() +align_position_with_view = Callable() -[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_7ywxt")] +[node name="PlayerCharacterBody3D" parent="Player" instance=ExtResource("5_o4k7v")] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.2122, 0.5, 8.40162) @@ -71,7 +61,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.2122, 0.5, 8.40162) [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("4_4u2y6")] +[node name="Floor" parent="Environment" instance=ExtResource("6_m6ich")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -159,5 +149,3 @@ size = Vector3(4.03502, 1.27695, 5.2198) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.04727, 0.0440434, 8.36617) use_collision = true size = Vector3(4.57784, 1.08809, 3.11285) - -[editable path="Player/PlayerCharacterBody3D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_attribtues_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_attribtues_example_scene.tscn index bdaef4e..16abe44 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_attribtues_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_attribtues_example_scene.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=21 format=3 uid="uid://5pjtxclcnx4f"] +[gd_scene load_steps=21 format=3 uid="uid://bklrp02eywxsx"] [ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="1_s26cy"] [ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="2_m2d6w"] [ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="3_l7kg8"] -[ext_resource type="PackedScene" uid="uid://mskcwn1a1v6d" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="4_qcyfd"] +[ext_resource type="PackedScene" uid="uid://bhd1kwv2fwj1y" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="4_qcyfd"] [ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_8von1"] [ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_o1fj6"] [ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_amcmx"] @@ -17,16 +17,6 @@ ease = 1 [sub_resource type="Resource" id="Resource_7m0fv"] script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_i42vj"] dof_blur_far_enabled = true @@ -43,16 +33,7 @@ ease = 1 [sub_resource type="Resource" id="Resource_jogxh"] script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 h_offset = 1.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_fvhx5"] dof_blur_far_enabled = true @@ -78,16 +59,6 @@ ease = 1 [sub_resource type="Resource" id="Resource_unpfd"] script = ExtResource("3_l7kg8") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [sub_resource type="CylinderMesh" id="CylinderMesh_sm466"] top_radius = 1.51 @@ -103,11 +74,11 @@ uv1_offset = Vector3(0.025, -0.927, 0) [node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 9.13821) +transform = Transform3D(0.99990255, 0.013962194, 0, -0.013962194, 0.99990255, 0, 0, 0, 1, -0.019, 0.5, 8.769) script = ExtResource("1_s26cy") priority = 10 follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_8fhct") tween_on_load = false camera_3d_resource = SubResource("Resource_7m0fv") @@ -115,13 +86,16 @@ attributes = SubResource("CameraAttributesPractical_i42vj") follow_damping = true follow_distance = 3.5 spring_length = 3.5 +align_transform_with_view = Callable() +align_position_with_view = Callable() +align_rotation_with_view = Callable() [node name="PlayerAimPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 1.47688, 6.73921) +transform = Transform3D(0.99990255, 0.013962194, 0, -0.013962194, 0.99990255, 0, 0, 0, 1, -0.019, 1.47, 6.37) script = ExtResource("1_s26cy") follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_e7t18") tween_on_load = false camera_3d_resource = SubResource("Resource_jogxh") @@ -130,15 +104,18 @@ follow_offset = Vector3(0, 0.97, -0.399) follow_damping_value = Vector3(0, 0, 0) follow_distance = 1.5 spring_length = 1.5 +align_transform_with_view = Callable() +align_position_with_view = Callable() +align_rotation_with_view = Callable() [node name="PlayerCharacterBody3D" parent="." instance=ExtResource("4_qcyfd")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 5.63821) +transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.019, 0.5, 5.269) [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true physics_interpolation_mode = 1 -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, 9.13821) +transform = Transform3D(0.99990255, 0.013962194, 0, -0.013962194, 0.99990255, 0, 0, 0, 1, -0.019, 0.5, 8.769) attributes = SubResource("CameraAttributesPractical_pst8q") [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] @@ -216,5 +193,3 @@ surface_material_override/0 = SubResource("StandardMaterial3D_hp48l") transform = Transform3D(-1, -8.74228e-08, 3.82137e-15, 0, -4.37114e-08, -1, 8.74228e-08, -1, 4.37114e-08, 0.0525861, 1.60477, 9.98156) mesh = SubResource("CylinderMesh_sm466") surface_material_override/0 = SubResource("StandardMaterial3D_hp48l") - -[editable path="PlayerCharacterBody3D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_example_scene.tscn index eadbe6e..7018007 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_follow_third_person_example_scene.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=16 format=3 uid="uid://4i5csj0s34nb"] +[gd_scene load_steps=16 format=3 uid="uid://ceelq6qrb41uf"] [ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="2_47xf2"] [ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_whx47"] @@ -6,7 +6,7 @@ [ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_jt2lp"] [ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="5_oc4q1"] [ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="7_kg7u1"] -[ext_resource type="PackedScene" uid="uid://mskcwn1a1v6d" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="7_kut0u"] +[ext_resource type="PackedScene" uid="uid://bhd1kwv2fwj1y" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn" id="7_kut0u"] [sub_resource type="Resource" id="Resource_8fhct"] script = ExtResource("2_47xf2") @@ -16,35 +16,16 @@ ease = 1 [sub_resource type="Resource" id="Resource_7m0fv"] script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [sub_resource type="Resource" id="Resource_e7t18"] script = ExtResource("2_47xf2") -duration = 0.4 +duration = 0.3 transition = 2 ease = 1 [sub_resource type="Resource" id="Resource_jogxh"] script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 h_offset = 1.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [sub_resource type="BoxMesh" id="BoxMesh_wsigl"] size = Vector3(1, 10, 20) @@ -60,30 +41,20 @@ ease = 1 [sub_resource type="Resource" id="Resource_ioijp"] script = ExtResource("5_jt2lp") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 [node name="Root" type="Node3D"] [node name="PlayerCharacterBody3D" parent="." instance=ExtResource("7_kut0u")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, 0, 0.506884, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0120916, 0.0069811, -0.0139622, 0.865941, 0.499951, 6.98492e-10, -0.5, 0.866025, 0.0244338, 2.25671, 3.03109) +transform = Transform3D(1, 0, 0, 0, 0.8660252, 0.5000003, 0, -0.5000003, 0.8660252, 0, 2.250001, 3.0310884) script = ExtResource("2_whx47") priority = 10 follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_8fhct") tween_on_load = false camera_3d_resource = SubResource("Resource_7m0fv") @@ -91,24 +62,30 @@ follow_damping = true follow_distance = 3.5 vertical_rotation_offset = 0.523599 spring_length = 3.5 +align_transform_with_view = Callable() +align_position_with_view = Callable() +align_rotation_with_view = Callable() [node name="PlayerAimPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, 0, 1.30688, 1.101) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.584, 1.3, 1.1010001) script = ExtResource("2_whx47") follow_mode = 6 -follow_target = NodePath("../PlayerCharacterBody3D/PlayerVisual") +follow_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_e7t18") tween_on_load = false camera_3d_resource = SubResource("Resource_jogxh") -follow_offset = Vector3(0, 0.8, -0.399) +follow_offset = Vector3(0.584, 0.8, -0.399) follow_distance = 1.5 spring_length = 1.5 +align_transform_with_view = Callable() +align_position_with_view = Callable() +align_rotation_with_view = Callable() [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true physics_interpolation_mode = 1 -transform = Transform3D(0.999903, 0.0120916, 0.0069811, -0.0139622, 0.865941, 0.499951, 6.98492e-10, -0.5, 0.866025, 0.0244338, 2.25671, 3.03109) +transform = Transform3D(1, 0, 0, 0, 0.8660252, 0.5000003, 0, -0.5000003, 0.8660252, 0, 2.250001, 3.0310884) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 @@ -187,5 +164,3 @@ modulate = Color(0.294118, 1, 0.631373, 1) text = "[Space] to toggle PCam" font = ExtResource("7_kg7u1") font_size = 48 - -[editable path="PlayerCharacterBody3D"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_look_at_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_look_at_example_scene.tscn index c50d90b..d058f10 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_look_at_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_look_at_example_scene.tscn @@ -1,31 +1,18 @@ -[gd_scene load_steps=14 format=3 uid="uid://bdhrdhbux7sjg"] +[gd_scene load_steps=14 format=3 uid="uid://dsfixtpa5xwqt"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="1_i2pjc"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_lldvu"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_8md3q"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_dqss1"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="4_2i811"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_m3qpq"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="5_u5qhp"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_jbmnd"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_t3gk2"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_b2lea"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_mqo2b"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="5_pxkua"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="6_uuxs3"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="7_0dyt0"] [sub_resource type="Resource" id="Resource_pwcgo"] -script = ExtResource("3_dqss1") -duration = 1.0 -transition = 0 -ease = 2 +script = ExtResource("3_b2lea") [sub_resource type="Resource" id="Resource_ft2w3"] -script = ExtResource("4_m3qpq") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("4_mqo2b") [sub_resource type="CapsuleMesh" id="CapsuleMesh_2h36r"] @@ -36,7 +23,7 @@ albedo_color = Color(0.227451, 0.337255, 0.576471, 1) albedo_color = Color(0.227451, 0.337255, 0.576471, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_auy8m"] -albedo_texture = ExtResource("5_u5qhp") +albedo_texture = ExtResource("7_0dyt0") uv1_triplanar = true uv1_world_triplanar = true @@ -44,29 +31,33 @@ uv1_world_triplanar = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(0.998682, 0.0324725, -0.0397495, 0, 0.774433, 0.632656, 0.0513272, -0.631822, 0.773412, -0.137901, 4.03222, 6.36446) +physics_interpolation_mode = 1 +transform = Transform3D(0.99976534, 0.0105280895, -0.018931806, -4.656613e-10, 0.873953, 0.48601043, 0.021662269, -0.4858964, 0.87374794, -0.137901, 4.03222, 6.36446) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_lldvu") +script = ExtResource("1_jbmnd") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) metadata/_edit_lock_ = true [node name="PhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("look_at_target")] -transform = Transform3D(0.999694, 0.0136487, -0.0206552, -0.000166996, 0.838005, 0.545663, 0.0247567, -0.545492, 0.837751, -0.137901, 4.03222, 6.36446) -script = ExtResource("2_8md3q") +transform = Transform3D(0.999765, 0.01052809, -0.018931821, -4.6566112e-10, 0.8739531, 0.48601085, 0.021662261, -0.48589647, 0.87374866, -0.137901, 4.03222, 6.36446) +script = ExtResource("2_t3gk2") priority = 10 look_at_mode = 2 -look_at_target = NodePath("../PlayerCharacterBody3D2/PlayerVisual") +look_at_target = NodePath("../PlayerCharacterBody3D") tween_resource = SubResource("Resource_pwcgo") tween_on_load = false camera_3d_resource = SubResource("Resource_ft2w3") look_at_damping = true +align_transform_with_view = Callable() +align_rotation_with_view = Callable() -[node name="PlayerCharacterBody3D2" parent="." instance=ExtResource("1_i2pjc")] +[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("5_pxkua")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="NPCs" type="Node" parent="."] @@ -84,7 +75,7 @@ surface_material_override/0 = SubResource("StandardMaterial3D_cw102") [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("4_2i811")] +[node name="Floor" parent="Environment" instance=ExtResource("6_uuxs3")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -194,5 +185,3 @@ size = Vector3(4.03502, 1.27695, 5.2198) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.7692, 1.78638, -1.60318) use_collision = true size = Vector3(4.57784, 4.57276, 3.11285) - -[editable path="PlayerCharacterBody3D2"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_noise_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_noise_example_scene.tscn index 0e63ea5..846ae98 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_noise_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_noise_example_scene.tscn @@ -1,31 +1,16 @@ -[gd_scene load_steps=22 format=3 uid="uid://p7s5t3tthmo"] +[gd_scene load_steps=21 format=3 uid="uid://d0fyuvesb472p"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_ggfbg"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="2_dreow"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="3_f8fcw"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="4_mjtut"] -[ext_resource type="Script" uid="uid://cuffvge5ad4aa" path="res://addons/phantom_camera/scripts/resources/phantom_camera_noise_3d.gd" id="4_poyyk"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="5_d6uqs"] -[ext_resource type="Script" uid="uid://b3n22atuw76sm" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd" id="6_fbad7"] -[ext_resource type="Script" uid="uid://ccmiitq0sdh7j" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_noise_emitter_3d.gd" id="6_n8u0x"] -[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="6_vpla5"] -[ext_resource type="FontFile" uid="uid://dve7mgsjik4dg" path="res://addons/phantom_camera/fonts/Nunito-Regular.ttf" id="10_0thai"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="11_i8r8q"] - -[sub_resource type="Resource" id="Resource_t3bgw"] -script = ExtResource("4_poyyk") -amplitude = 30.0 -frequency = 2.0 -randomize_noise_seed = 1 -noise_seed = 0 -rotational_noise = true -positional_noise = false -rotational_multiplier_x = 0.1 -rotational_multiplier_y = 0.1 -rotational_multiplier_z = 0.0 -positional_multiplier_x = 0.0 -positional_multiplier_y = 0.0 -positional_multiplier_z = 0.0 +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_25rmy"] +[ext_resource type="Script" uid="uid://x5g7kf5k2mac" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd" id="2_7nd2u"] +[ext_resource type="Script" uid="uid://cuffvge5ad4aa" path="res://addons/phantom_camera/scripts/resources/phantom_camera_noise_3d.gd" id="3_t4fhv"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="4_tnm2f"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="5_4webr"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="6_dmm4a"] +[ext_resource type="Script" uid="uid://ccmiitq0sdh7j" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_noise_emitter_3d.gd" id="7_2vtho"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="8_bw5oq"] +[ext_resource type="Texture2D" uid="uid://bj7h2fc5jx4ax" path="res://addons/phantom_camera/examples/textures/3D/checker_pattern_dark.png" id="9_jpkpr"] +[ext_resource type="FontFile" uid="uid://dve7mgsjik4dg" path="res://addons/phantom_camera/fonts/Nunito-Regular.ttf" id="10_8pr3k"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="11_vp57v"] [sub_resource type="CapsuleMesh" id="CapsuleMesh_yvgu3"] @@ -36,56 +21,29 @@ albedo_color = Color(0.988235, 0.498039, 0.498039, 1) radius = 0.269454 [sub_resource type="Resource" id="Resource_lhgur"] -script = ExtResource("3_f8fcw") -duration = 1.0 -transition = 0 -ease = 2 +script = ExtResource("5_4webr") [sub_resource type="Resource" id="Resource_ghjuj"] -script = ExtResource("4_mjtut") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("6_dmm4a") [sub_resource type="Resource" id="Resource_2l4w0"] -script = ExtResource("4_poyyk") +script = ExtResource("3_t4fhv") amplitude = 40.0 -frequency = 0.2 randomize_noise_seed = 0 -noise_seed = 0 -rotational_noise = true -positional_noise = false -rotational_multiplier_x = 1.0 -rotational_multiplier_y = 1.0 rotational_multiplier_z = 0.0 positional_multiplier_x = 0.1 positional_multiplier_y = 0.1 positional_multiplier_z = 0.1 [sub_resource type="Resource" id="Resource_6tnhy"] -script = ExtResource("4_poyyk") -amplitude = 10.0 -frequency = 4.2 +script = ExtResource("3_t4fhv") +frequency = 20.0 randomize_noise_seed = 0 noise_seed = 928 -rotational_noise = true -positional_noise = false -rotational_multiplier_x = 1.0 -rotational_multiplier_y = 1.0 rotational_multiplier_z = 0.1 -positional_multiplier_x = 1.0 -positional_multiplier_y = 1.0 -positional_multiplier_z = 1.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qi01t"] -albedo_texture = ExtResource("6_vpla5") +albedo_texture = ExtResource("9_jpkpr") uv1_triplanar = true uv1_world_triplanar = true @@ -101,22 +59,22 @@ expand_margin_bottom = 6.0 [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(0.0129783, 0.0962422, 0.995273, 0, 0.995357, -0.0962503, -0.999916, 0.00124916, 0.012918, -16.46, 0.503767, 4.249) +physics_interpolation_mode = 1 +transform = Transform3D(0.096600816, -0.02989527, 0.9948742, 0, 0.99954885, 0.030035738, -0.99532324, -0.0029014763, 0.09655723, -16.46, 0.5, 4.249) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("1_ggfbg") +script = ExtResource("1_25rmy") [node name="PlayerCharacterBody3D" type="CharacterBody3D" parent="."] unique_name_in_owner = true -transform = Transform3D(0.999897, 0.0143636, 0, -0.0143636, 0.999897, 0, 0, 0, 1, -16.46, 0.503767, 4.249) -script = ExtResource("6_fbad7") -run_noise = SubResource("Resource_t3bgw") +transform = Transform3D(0.999897, 0.0143636, 0, -0.0143636, 0.999897, 0, 0, 0, 1, -16.46, 0.5, 4.249) +script = ExtResource("2_7nd2u") [node name="PlayerVisual" type="MeshInstance3D" parent="PlayerCharacterBody3D"] unique_name_in_owner = true -visible = false +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.76837e-05, 0.00331134, 0) mesh = SubResource("CapsuleMesh_yvgu3") surface_material_override/0 = SubResource("StandardMaterial3D_vc6km") @@ -130,9 +88,9 @@ shape = SubResource("CapsuleShape3D_lsrh7") [node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.00441533, 0, 0.999915, 0, 0.999995, 0, -0.999923, 0, 0.00441529, -16.46, 0.503767, 4.249) +transform = Transform3D(0.00441533, 0, 0.999915, 0, 0.999995, 0, -0.999923, 0, 0.00441529, -16.46, 0.5, 4.249) top_level = true -script = ExtResource("2_dreow") +script = ExtResource("4_tnm2f") priority = 10 follow_mode = 2 follow_target = NodePath("../PlayerCharacterBody3D") @@ -141,18 +99,20 @@ tween_on_load = false camera_3d_resource = SubResource("Resource_ghjuj") noise = SubResource("Resource_2l4w0") noise_emitter_layer = 1 +align_transform_with_view = Callable() +align_position_with_view = Callable() [node name="PlayerPhantomCameraNoiseEmitter3D" type="Node3D" parent="."] unique_name_in_owner = true transform = Transform3D(-4.37085e-08, 0, 0.999925, 0, 0.999995, 0, -0.999933, 0, -4.37081e-08, -16.46, 0.503767, 4.249) -script = ExtResource("6_n8u0x") +script = ExtResource("7_2vtho") noise = SubResource("Resource_6tnhy") duration = 0.1 decay_time = 0.1 [node name="Environment" type="Node" parent="."] -[node name="Floor" parent="Environment" instance=ExtResource("5_d6uqs")] +[node name="Floor" parent="Environment" instance=ExtResource("8_bw5oq")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true @@ -201,8 +161,8 @@ anchor_bottom = 0.5 grow_horizontal = 2 grow_vertical = 2 size_flags_vertical = 8 -theme_override_fonts/normal_font = ExtResource("10_0thai") -theme_override_fonts/bold_font = ExtResource("11_i8r8q") +theme_override_fonts/normal_font = ExtResource("10_8pr3k") +theme_override_fonts/bold_font = ExtResource("11_vp57v") theme_override_font_sizes/normal_font_size = 18 theme_override_font_sizes/bold_font_size = 24 bbcode_enabled = true diff --git a/addons/phantom_camera/examples/example_scenes/3D/3d_tweening_example_scene.tscn b/addons/phantom_camera/examples/example_scenes/3D/3d_tweening_example_scene.tscn index 2524686..b86c70f 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/3d_tweening_example_scene.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/3d_tweening_example_scene.tscn @@ -1,27 +1,17 @@ -[gd_scene load_steps=22 format=3 uid="uid://5xtssqdfilal"] +[gd_scene load_steps=22 format=3 uid="uid://cvnbgtbaxwj5p"] -[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="1_ydeog"] -[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="2_b2yrt"] -[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_m2w30"] -[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_425ma"] -[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_cn3g7"] -[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="5_h0ouh"] -[ext_resource type="PackedScene" uid="uid://bulsh7s0ibmao" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="6_gcjyn"] -[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="6_wup4d"] -[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="8_60rny"] +[ext_resource type="PackedScene" uid="uid://cixlwqycoox8h" path="res://addons/phantom_camera/examples/models/3d_cube_dark.tscn" id="1_d55xf"] +[ext_resource type="Script" uid="uid://bd046eokvcnu2" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="2_d1opf"] +[ext_resource type="Script" uid="uid://csjccrhj5wnx7" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_4whss"] +[ext_resource type="Resource" uid="uid://cptfoggk2ok67" path="res://addons/phantom_camera/examples/resources/tween/player_phantom_camera_3d_tween.tres" id="4_8ap1e"] +[ext_resource type="Script" uid="uid://b8hhnqsugykly" path="res://addons/phantom_camera/scripts/resources/camera_3d_resource.gd" id="5_1sgnu"] +[ext_resource type="PackedScene" uid="uid://cb83in8f0tbb1" path="res://addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn" id="6_lr46m"] +[ext_resource type="Script" uid="uid://bnhxcejvr6wi3" path="res://addons/phantom_camera/examples/scripts/3D/3d_trigger_area.gd" id="7_istoq"] +[ext_resource type="Script" uid="uid://8umksf8e80fw" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="8_qepee"] +[ext_resource type="FontFile" uid="uid://c4mm3of2mc8o5" path="res://addons/phantom_camera/fonts/Nunito-Black.ttf" id="9_ptb3h"] [sub_resource type="Resource" id="Resource_0dtvs"] -script = ExtResource("5_cn3g7") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_1sgnu") [sub_resource type="BoxShape3D" id="BoxShape3D_j6fha"] size = Vector3(5, 0.1, 4) @@ -34,80 +24,35 @@ transparency = 1 albedo_color = Color(0.988235, 0.478431, 0.905882, 0.0901961) [sub_resource type="Resource" id="Resource_v8ndi"] -script = ExtResource("6_wup4d") +script = ExtResource("8_qepee") duration = 0.6 -transition = 0 -ease = 2 [sub_resource type="Resource" id="Resource_kmep1"] -script = ExtResource("5_cn3g7") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_1sgnu") [sub_resource type="Resource" id="Resource_uxg44"] -script = ExtResource("6_wup4d") +script = ExtResource("8_qepee") duration = 0.3 transition = 1 -ease = 2 [sub_resource type="Resource" id="Resource_eu3bc"] -script = ExtResource("5_cn3g7") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_1sgnu") [sub_resource type="Resource" id="Resource_0nci0"] -script = ExtResource("6_wup4d") +script = ExtResource("8_qepee") duration = 0.3 transition = 8 -ease = 2 [sub_resource type="Resource" id="Resource_u0lff"] -script = ExtResource("5_cn3g7") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_1sgnu") [sub_resource type="Resource" id="Resource_50m5g"] -script = ExtResource("6_wup4d") +script = ExtResource("8_qepee") duration = 1.2 transition = 10 -ease = 2 [sub_resource type="Resource" id="Resource_rexf8"] -script = ExtResource("5_cn3g7") -keep_aspect = 1 -cull_mask = 1048575 -h_offset = 0.0 -v_offset = 0.0 -projection = 0 -fov = 75.0 -size = 1.0 -frustum_offset = Vector2(0, 0) -near = 0.05 -far = 4000.0 +script = ExtResource("5_1sgnu") [node name="Root" type="Node3D"] @@ -117,36 +62,40 @@ far = 4000.0 transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 8, 0) metadata/_edit_lock_ = true -[node name="Floor" parent="Environment" instance=ExtResource("1_ydeog")] +[node name="Floor" parent="Environment" instance=ExtResource("1_d55xf")] transform = Transform3D(1000, 0, 0, 0, 1, 0, 0, 0, 1000, 0, -1, 0) metadata/_edit_lock_ = true [node name="MainCamera3D" type="Camera3D" parent="."] unique_name_in_owner = true -transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 5.08867e-06, 2.00003, 2.00013) +physics_interpolation_mode = 1 +transform = Transform3D(0.999889, 0, 0, 0, 0.707092, 0.707088, 0, -0.707092, 0.707088, 0, 2.5, 3.19136) [node name="PhantomCameraHost" type="Node" parent="MainCamera3D"] process_priority = 300 process_physics_priority = 300 -script = ExtResource("2_b2yrt") +script = ExtResource("2_d1opf") [node name="------------------" type="Node" parent="."] [node name="PlayerPhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target")] unique_name_in_owner = true -transform = Transform3D(0.999889, 0, 0, 0, 0.707092, 0.707088, 0, -0.707092, 0.707088, 0, 2, 2) +transform = Transform3D(0.999889, 0, 0, 0, 0.707092, 0.707088, 0, -0.707092, 0.707088, 0, 2.5, 3.19136) top_level = true -script = ExtResource("3_m2w30") +script = ExtResource("3_4whss") priority = 3 follow_mode = 2 -follow_target = NodePath("../PlayerCharacterBody3D2/PlayerVisual") -tween_resource = ExtResource("4_425ma") +follow_target = NodePath("../PlayerCharacterBody3D") +tween_resource = ExtResource("4_8ap1e") tween_on_load = false camera_3d_resource = SubResource("Resource_0dtvs") follow_offset = Vector3(0, 2, 2) follow_damping = true +align_transform_with_view = Callable() +align_position_with_view = Callable() -[node name="PlayerCharacterBody3D2" parent="." instance=ExtResource("6_gcjyn")] +[node name="PlayerCharacterBody3D" parent="." instance=ExtResource("6_lr46m")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 1.19136) [node name="-------------------" type="Node" parent="."] @@ -157,7 +106,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.97) [node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Linear" node_paths=PackedStringArray("area_pcam")] priority = 5 -script = ExtResource("5_h0ouh") +script = ExtResource("7_istoq") area_pcam = NodePath("../PhantomCamera3D") metadata/_edit_group_ = true @@ -172,7 +121,7 @@ metadata/_edit_group_ = true [node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Linear"] transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_m2w30") +script = ExtResource("3_4whss") tween_resource = SubResource("Resource_v8ndi") camera_3d_resource = SubResource("Resource_kmep1") @@ -183,7 +132,7 @@ Linear Duration: 0.6s" -font = ExtResource("8_60rny") +font = ExtResource("9_ptb3h") font_size = 48 [node name="Sine" type="Node3D" parent="Tweening Example"] @@ -191,7 +140,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -7.4) [node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Sine" node_paths=PackedStringArray("area_pcam")] priority = 5 -script = ExtResource("5_h0ouh") +script = ExtResource("7_istoq") area_pcam = NodePath("../PhantomCamera3D") metadata/_edit_group_ = true @@ -206,7 +155,7 @@ metadata/_edit_group_ = true [node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Sine"] transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_m2w30") +script = ExtResource("3_4whss") tween_resource = SubResource("Resource_uxg44") camera_3d_resource = SubResource("Resource_eu3bc") @@ -217,7 +166,7 @@ Sine Duration: 0.3s" -font = ExtResource("8_60rny") +font = ExtResource("9_ptb3h") font_size = 72 [node name="Circ" type="Node3D" parent="Tweening Example"] @@ -225,7 +174,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -14.1) [node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Circ" node_paths=PackedStringArray("area_pcam")] priority = 5 -script = ExtResource("5_h0ouh") +script = ExtResource("7_istoq") area_pcam = NodePath("../PhantomCamera3D") metadata/_edit_group_ = true @@ -240,7 +189,7 @@ metadata/_edit_group_ = true [node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Circ"] transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 0, 4.8, 3.3) -script = ExtResource("3_m2w30") +script = ExtResource("3_4whss") tween_resource = SubResource("Resource_0nci0") camera_3d_resource = SubResource("Resource_u0lff") @@ -251,7 +200,7 @@ Circ Duration: 0.3s" -font = ExtResource("8_60rny") +font = ExtResource("9_ptb3h") font_size = 72 [node name="Back" type="Node3D" parent="Tweening Example"] @@ -259,7 +208,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -21) [node name="EntryRoomTrigger" type="Area3D" parent="Tweening Example/Back" node_paths=PackedStringArray("area_pcam")] priority = 5 -script = ExtResource("5_h0ouh") +script = ExtResource("7_istoq") area_pcam = NodePath("../PhantomCamera3D") metadata/_edit_group_ = true @@ -274,7 +223,7 @@ metadata/_edit_group_ = true [node name="PhantomCamera3D" type="Node3D" parent="Tweening Example/Back"] transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, -0.8, 4.8, 3.3) -script = ExtResource("3_m2w30") +script = ExtResource("3_4whss") tween_resource = SubResource("Resource_50m5g") camera_3d_resource = SubResource("Resource_rexf8") @@ -285,7 +234,5 @@ Back Duration: 1.2s" -font = ExtResource("8_60rny") +font = ExtResource("9_ptb3h") font_size = 48 - -[editable path="PlayerCharacterBody3D2"] diff --git a/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn b/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn index 26460f4..e2538df 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_3d.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=5 format=3 uid="uid://bulsh7s0ibmao"] +[gd_scene load_steps=5 format=3 uid="uid://cb83in8f0tbb1"] -[ext_resource type="Script" uid="uid://dut3e76k2c71n" path="res://addons/phantom_camera/examples/scripts/3D/player_controller.gd" id="1_6hh6c"] +[ext_resource type="Script" uid="uid://tgv6xpi88sd0" path="res://addons/phantom_camera/examples/scripts/3D/player_controller.gd" id="1_pl87s"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_8efyg"] @@ -9,8 +9,8 @@ [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r3ldp"] albedo_color = Color(0.988235, 0.498039, 0.498039, 1) -[node name="PlayerCharacterBody3D2" type="CharacterBody3D"] -script = ExtResource("1_6hh6c") +[node name="PlayerCharacterBody3D" type="CharacterBody3D"] +script = ExtResource("1_pl87s") metadata/_edit_group_ = true [node name="PlayerArea3D" type="Area3D" parent="."] diff --git a/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn b/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn index ca4b97c..f113ac5 100644 --- a/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn +++ b/addons/phantom_camera/examples/example_scenes/3D/sub_scenes/playable_character_third_person_3d.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=6 format=3 uid="uid://mskcwn1a1v6d"] +[gd_scene load_steps=6 format=3 uid="uid://bhd1kwv2fwj1y"] -[ext_resource type="Script" uid="uid://34uhyq3cpi67" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd" id="1_0dnfe"] +[ext_resource type="Script" uid="uid://bkr71vxe2t18n" path="res://addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd" id="1_skas8"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_s61dn"] @@ -13,9 +13,9 @@ albedo_color = Color(0.988235, 0.498039, 0.498039, 1) size = Vector3(0.5, 0.5, 0.3) [node name="PlayerCharacterBody3D" type="CharacterBody3D"] -transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, 0, 0, 0) +transform = Transform3D(0.999903, 0.0139622, 0, -0.0139622, 0.999903, 0, 0, 0, 1, -0.0194088, 0.506884, -0.0163251) collision_layer = 2 -script = ExtResource("1_0dnfe") +script = ExtResource("1_skas8") metadata/_edit_group_ = true [node name="PlayerArea3D" type="Area3D" parent="."] diff --git a/addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd b/addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd index 796795a..4688f50 100644 --- a/addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd +++ b/addons/phantom_camera/examples/scripts/2D/player_character_body_2d_4.3.gd @@ -144,7 +144,7 @@ func _physics_process(delta: float) -> void: func _show_prompt(body_rid: RID, body: Node2D, body_shape_index: int, local_shape: int) -> void: if body.is_class("TileMapLayer"): # TODO - Using string reference to support Godot 4.2 var tile_map := body - tile_map.physics_quadrant_size = 1 + tile_map.set("physics_quadrant_size", 1) # Fix for Godot 4.4 var tile_coords: Vector2i = tile_map.get_coords_for_body_rid(body_rid) var cell_data: TileData = tile_map.get_cell_tile_data(tile_coords) diff --git a/addons/phantom_camera/examples/scripts/3D/path_follow.gd b/addons/phantom_camera/examples/scripts/3D/path_follow.gd index 8535e4c..9bf865b 100644 --- a/addons/phantom_camera/examples/scripts/3D/path_follow.gd +++ b/addons/phantom_camera/examples/scripts/3D/path_follow.gd @@ -1,17 +1,14 @@ -extends Node +extends Area3D @export var path_pcam: PhantomCamera3D func _ready() -> void: - connect("area_entered", _entered_area) - connect("area_exited", _exited_area) + area_shape_entered.connect(_area_shape_entered) + area_shape_exited.connect(_area_shape_exited) -func _entered_area(area_3D: Area3D) -> void: - if area_3D.get_parent() is CharacterBody3D: - path_pcam.set_priority(20) +func _area_shape_entered(area_rid: RID, area: Area3D, area_shape_index: int, local_shape_index: int) -> void: + path_pcam.set_priority(20) - -func _exited_area(area_3D: Area3D) -> void: - if area_3D.get_parent() is CharacterBody3D: - path_pcam.set_priority(0) +func _area_shape_exited(area_rid: RID, area: Area3D, area_shape_index: int, local_shape_index: int) -> void: + path_pcam.set_priority(0) diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller.gd b/addons/phantom_camera/examples/scripts/3D/player_controller.gd index b136103..e907eca 100644 --- a/addons/phantom_camera/examples/scripts/3D/player_controller.gd +++ b/addons/phantom_camera/examples/scripts/3D/player_controller.gd @@ -6,16 +6,11 @@ extends CharacterBody3D @onready var _camera: Camera3D -@onready var _player_visual: Node3D = %PlayerVisual - # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity: float = 9.8 var movement_enabled: bool = true -var _physics_body_trans_last: Transform3D -var _physics_body_trans_current: Transform3D - const KEY_STRINGNAME: StringName = "Key" const ACTION_STRINGNAME: StringName = "Action" @@ -56,13 +51,8 @@ func _ready() -> void: InputMap.add_action(action_val) InputMap.action_add_event(action_val, movement_input) - _player_visual.top_level = true - func _physics_process(delta: float) -> void: - _physics_body_trans_last = _physics_body_trans_current - _physics_body_trans_current = global_transform - # Add the gravity. if enable_gravity and not is_on_floor(): velocity.y -= gravity * delta @@ -78,8 +68,6 @@ func _physics_process(delta: float) -> void: INPUT_MOVE_DOWM_STRINGNAME ) - var cam_dir: Vector3 = -_camera.global_transform.basis.z - var direction: Vector3 = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() if direction: var move_dir: Vector3 = Vector3.ZERO @@ -94,10 +82,3 @@ func _physics_process(delta: float) -> void: velocity.z = move_toward(velocity.z, 0, SPEED) move_and_slide() - - -func _process(_delta: float) -> void: - _player_visual.global_transform = _physics_body_trans_last.interpolate_with( - _physics_body_trans_current, - Engine.get_physics_interpolation_fraction() - ) diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller.gd.uid index c23173c..182faff 100644 --- a/addons/phantom_camera/examples/scripts/3D/player_controller.gd.uid +++ b/addons/phantom_camera/examples/scripts/3D/player_controller.gd.uid @@ -1 +1 @@ -uid://dut3e76k2c71n +uid://tgv6xpi88sd0 diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd b/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd deleted file mode 100644 index e907eca..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd +++ /dev/null @@ -1,84 +0,0 @@ -extends CharacterBody3D - -@export var SPEED: float = 5.0 -@export var JUMP_VELOCITY: float = 4.5 -@export var enable_gravity = true - -@onready var _camera: Camera3D - -# Get the gravity from the project settings to be synced with RigidBody nodes. -var gravity: float = 9.8 - -var movement_enabled: bool = true - -const KEY_STRINGNAME: StringName = "Key" -const ACTION_STRINGNAME: StringName = "Action" - -const INPUT_MOVE_UP_STRINGNAME: StringName = "move_up" -const INPUT_MOVE_DOWM_STRINGNAME: StringName = "move_down" -const INPUT_MOVE_LEFT_STRINGNAME: StringName = "move_left" -const INPUT_MOVE_RIGHT_STRINGNAME: StringName = "move_right" - -var InputMovementDic: Dictionary = { - INPUT_MOVE_UP_STRINGNAME: { - KEY_STRINGNAME: KEY_W, - ACTION_STRINGNAME: INPUT_MOVE_UP_STRINGNAME - }, - INPUT_MOVE_DOWM_STRINGNAME: { - KEY_STRINGNAME: KEY_S, - ACTION_STRINGNAME: INPUT_MOVE_DOWM_STRINGNAME - }, - INPUT_MOVE_LEFT_STRINGNAME: { - KEY_STRINGNAME: KEY_A, - ACTION_STRINGNAME: INPUT_MOVE_LEFT_STRINGNAME - }, - INPUT_MOVE_RIGHT_STRINGNAME: { - KEY_STRINGNAME: KEY_D, - ACTION_STRINGNAME: INPUT_MOVE_RIGHT_STRINGNAME - }, -} - - -func _ready() -> void: - for input in InputMovementDic: - var key_val = InputMovementDic[input].get(KEY_STRINGNAME) - var action_val = InputMovementDic[input].get(ACTION_STRINGNAME) - - _camera = owner.get_node("%MainCamera3D") - - var movement_input = InputEventKey.new() - movement_input.physical_keycode = key_val - InputMap.add_action(action_val) - InputMap.action_add_event(action_val, movement_input) - - -func _physics_process(delta: float) -> void: - # Add the gravity. - if enable_gravity and not is_on_floor(): - velocity.y -= gravity * delta - - if not movement_enabled: return - - # Get the input direction and handle the movement/deceleration. - # As good practice, you should replace UI actions with custom gameplay actions. - var input_dir: Vector2 = Input.get_vector( - INPUT_MOVE_LEFT_STRINGNAME, - INPUT_MOVE_RIGHT_STRINGNAME, - INPUT_MOVE_UP_STRINGNAME, - INPUT_MOVE_DOWM_STRINGNAME - ) - - var direction: Vector3 = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() - if direction: - var move_dir: Vector3 = Vector3.ZERO - move_dir.x = direction.x - move_dir.z = direction.z - - move_dir = move_dir.rotated(Vector3.UP, _camera.rotation.y).normalized() - velocity.x = move_dir.x * SPEED - velocity.z = move_dir.z * SPEED - else: - velocity.x = move_toward(velocity.x, 0, SPEED) - velocity.z = move_toward(velocity.z, 0, SPEED) - - move_and_slide() diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd.uid deleted file mode 100644 index 182faff..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_4.4.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://tgv6xpi88sd0 diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd.uid index c31115d..ee16763 100644 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd.uid +++ b/addons/phantom_camera/examples/scripts/3D/player_controller_first_person.gd.uid @@ -1 +1 @@ -uid://b3n22atuw76sm +uid://x5g7kf5k2mac diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd b/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd deleted file mode 100644 index 33e4601..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd +++ /dev/null @@ -1,54 +0,0 @@ -extends "player_controller_4.4.gd" - -@onready var _player_pcam: PhantomCamera3D = %PlayerPhantomCamera3D - -@onready var _player_character: CharacterBody3D = %PlayerCharacterBody3D - -@export var mouse_sensitivity: float = 0.05 - -@export var min_pitch: float = -89.9 -@export var max_pitch: float = 50 - -@export var min_yaw: float = 0 -@export var max_yaw: float = 360 - -@export var run_noise: PhantomCameraNoise3D - -func _ready() -> void: - super() - Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) - - if get_node_or_null("%PlayerPhantomCameraNoiseEmitter3D"): - %EmitterTip.visible = true - - -func _physics_process(delta: float) -> void: - super(delta) - - -func _unhandled_input(event: InputEvent) -> void: - if event is InputEventKey: - if get_node_or_null("%PlayerPhantomCameraNoiseEmitter3D"): - if event.keycode == KEY_Q and event.is_pressed(): - %PlayerPhantomCameraNoiseEmitter3D.emit() - - if event is InputEventMouseMotion: - var pcam_rotation_degrees: Vector3 - - # Assigns the current 3D rotation of the SpringArm3D node - so it starts off where it is in the editor - pcam_rotation_degrees = _player_pcam.rotation_degrees - - # Change the X rotation - pcam_rotation_degrees.x -= event.relative.y * mouse_sensitivity - - # Clamp the rotation in the X axis so it go over or under the target - pcam_rotation_degrees.x = clampf(pcam_rotation_degrees.x, min_pitch, max_pitch) - - # Change the Y rotation value - pcam_rotation_degrees.y -= event.relative.x * mouse_sensitivity - - # Sets the rotation to fully loop around its target, but witout going below or exceeding 0 and 360 degrees respectively - pcam_rotation_degrees.y = wrapf(pcam_rotation_degrees.y, min_yaw, max_yaw) - - # Change the SpringArm3D node's rotation and rotate around its target - _player_pcam.rotation_degrees = pcam_rotation_degrees diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd.uid deleted file mode 100644 index ee16763..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_first_person_4.4.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://x5g7kf5k2mac diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd index f5d5579..32528fc 100644 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd +++ b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd @@ -14,7 +14,6 @@ extends "player_controller.gd" @export var max_yaw: float = 360 - func _ready() -> void: super() diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd.uid index 2218a6a..6346cec 100644 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd.uid +++ b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person.gd.uid @@ -1 +1 @@ -uid://34uhyq3cpi67 +uid://bkr71vxe2t18n diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd deleted file mode 100644 index d0d56d4..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd +++ /dev/null @@ -1,86 +0,0 @@ -extends "player_controller_4.4.gd" - -@onready var _player_pcam: PhantomCamera3D -@onready var _aim_pcam: PhantomCamera3D -@onready var _player_direction: Node3D = %PlayerDirection -@onready var _ceiling_pcam: PhantomCamera3D - -@export var mouse_sensitivity: float = 0.05 - -@export var min_pitch: float = -89.9 -@export var max_pitch: float = 50 - -@export var min_yaw: float = 0 -@export var max_yaw: float = 360 - - -func _ready() -> void: - super() - - _player_pcam = owner.get_node("%PlayerPhantomCamera3D") - _aim_pcam = owner.get_node("%PlayerAimPhantomCamera3D") - _ceiling_pcam = owner.get_node("%CeilingPhantomCamera3D") - - if _player_pcam.get_follow_mode() == _player_pcam.FollowMode.THIRD_PERSON: - Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) - - -func _physics_process(delta: float) -> void: - super(delta) - - if velocity.length() > 0.2: - var look_direction: Vector2 = Vector2(velocity.z, velocity.x) - _player_direction.rotation.y = look_direction.angle() - - -func _unhandled_input(event: InputEvent) -> void: - if _player_pcam.get_follow_mode() == _player_pcam.FollowMode.THIRD_PERSON: - var active_pcam: PhantomCamera3D - - _set_pcam_rotation(_player_pcam, event) - _set_pcam_rotation(_aim_pcam, event) - if _player_pcam.get_priority() > _aim_pcam.get_priority(): - _toggle_aim_pcam(event) - else: - _toggle_aim_pcam(event) - - if event is InputEventKey and event.pressed: - if event.keycode == KEY_SPACE: - if _ceiling_pcam.get_priority() < 30 and _player_pcam.is_active(): - _ceiling_pcam.set_priority(30) - else: - _ceiling_pcam.set_priority(1) - - -func _set_pcam_rotation(pcam: PhantomCamera3D, event: InputEvent) -> void: - if event is InputEventMouseMotion: - var pcam_rotation_degrees: Vector3 - - # Assigns the current 3D rotation of the SpringArm3D node - so it starts off where it is in the editor - pcam_rotation_degrees = pcam.get_third_person_rotation_degrees() - - # Change the X rotation - pcam_rotation_degrees.x -= event.relative.y * mouse_sensitivity - - # Clamp the rotation in the X axis so it go over or under the target - pcam_rotation_degrees.x = clampf(pcam_rotation_degrees.x, min_pitch, max_pitch) - - # Change the Y rotation value - pcam_rotation_degrees.y -= event.relative.x * mouse_sensitivity - - # Sets the rotation to fully loop around its target, but witout going below or exceeding 0 and 360 degrees respectively - pcam_rotation_degrees.y = wrapf(pcam_rotation_degrees.y, min_yaw, max_yaw) - - # Change the SpringArm3D node's rotation and rotate around its target - pcam.set_third_person_rotation_degrees(pcam_rotation_degrees) - - -func _toggle_aim_pcam(event: InputEvent) -> void: - if event is InputEventMouseButton \ - and event.is_pressed() \ - and event.button_index == 2 \ - and (_player_pcam.is_active() or _aim_pcam.is_active()): - if _player_pcam.get_priority() > _aim_pcam.get_priority(): - _aim_pcam.set_priority(30) - else: - _aim_pcam.set_priority(0) diff --git a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd.uid b/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd.uid deleted file mode 100644 index 6346cec..0000000 --- a/addons/phantom_camera/examples/scripts/3D/player_controller_third_person_4.4.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bkr71vxe2t18n diff --git a/addons/phantom_camera/plugin.cfg b/addons/phantom_camera/plugin.cfg index a76a06f..4fcbcfe 100644 --- a/addons/phantom_camera/plugin.cfg +++ b/addons/phantom_camera/plugin.cfg @@ -3,5 +3,5 @@ name="Phantom Camera" description="Control the movement and dynamically tween 2D & 3D cameras positions. Built for Godot 4. Inspired by Cinemachine." author="Marcus Skov" -version="0.9.4" +version="0.9.4.1" script="plugin.gd" diff --git a/addons/phantom_camera/scripts/phantom_camera/PhantomCamera2D.cs b/addons/phantom_camera/scripts/phantom_camera/PhantomCamera2D.cs index 0173c2c..a0faf1d 100644 --- a/addons/phantom_camera/scripts/phantom_camera/PhantomCamera2D.cs +++ b/addons/phantom_camera/scripts/phantom_camera/PhantomCamera2D.cs @@ -218,11 +218,6 @@ public class PhantomCamera2D : PhantomCamera Node2D.Connect(SignalName.NoiseEmitted, callableNoiseEmitted); } - public void SetLimitTarget(TileMap tileMap) - { - Node2D.Call(MethodName.SetLimitTarget, tileMap.GetPath()); - } - public void SetLimitTarget(TileMapLayer tileMapLayer) { Node2D.Call(MethodName.SetLimitTarget, tileMapLayer.GetPath()); @@ -314,16 +309,10 @@ public class PhantomCamera2D : PhantomCamera public class LimitTargetQueryResult(GodotObject godotObject) { - public bool IsTileMap => godotObject.IsClass("TileMap"); - public bool IsTileMapLayer => godotObject.IsClass("TileMapLayer"); public bool IsCollisionShape2D => godotObject.IsClass("CollisionShape2D"); - public TileMap? AsTileMap() - { - return IsTileMap ? (TileMap)godotObject : null; - } public TileMapLayer? AsTileMapLayer() { diff --git a/addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd b/addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd index f38c531..00c346d 100644 --- a/addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd +++ b/addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd @@ -410,22 +410,22 @@ var _should_rotate_with_target: bool = false set = set_limit_bottom, get = get_limit_bottom -## Allows for setting either a [TileMap], [TileMapLayer] or [CollisionShape2D] node to +## Allows for setting either a [TileMapLayer] or [CollisionShape2D] node to ## automatically apply a limit size instead of manually adjusting the Left, ## Top, Right and Left properties.[br][br] -## [b]TileMap / TileMapLayer[/b][br] -## The Limit will update after the [TileSet] of the [TileMap] / [TileMapLayer] has changed.[br] +## [b]TileMapLayer[/b][br] +## The Limit will update after the [TileSet] of the [TileMapLayer] has changed.[br] ## [b]Note:[/b] The limit size will only update after closing the TileMap editor ## bottom panel. ## [br][br] ## [b]CollisionShape2D[/b][br] ## The limit will update in realtime as the Shape2D changes its size. ## Note: For performance reasons, resizing the [Shape2D] during runtime will not change the Limits sides. -@export_node_path("TileMap", "Node2D", "CollisionShape2D") var limit_target: NodePath = NodePath(""): +@export_node_path("TileMapLayer", "CollisionShape2D") var limit_target: NodePath = NodePath(""): set = set_limit_target, get = get_limit_target -## Applies an offset to the [TileMap]/[TileMapLayer] Limit or [Shape2D] Limit. +## Applies an offset to the [TileMapLayer] Limit or [Shape2D] Limit. ## The values goes from [param Left], [param Top], [param Right] ## and [param Bottom]. @export var limit_margin: Vector4i = Vector4.ZERO: @@ -549,8 +549,7 @@ func _validate_property(property: Dictionary) -> void: property.usage = PROPERTY_USAGE_NO_EDITOR if property.name == "follow_offset": - if follow_mode == FollowMode.PATH or \ - follow_mode == FollowMode.GLUED: + if follow_mode == FollowMode.GLUED: property.usage = PROPERTY_USAGE_NO_EDITOR if property.name == "follow_damping_value" and not follow_damping: @@ -1053,8 +1052,8 @@ func update_limit_all_sides() -> void: _limit_sides.y = limit_top _limit_sides.z = limit_right _limit_sides.w = limit_bottom - elif _limit_node is TileMap or _limit_node.is_class("TileMapLayer"): - var tile_map := _limit_node + elif _limit_node is TileMapLayer: + var tile_map: TileMapLayer = _limit_node if not tile_map.tile_set: return # TODO: This should be removed once https://github.com/godotengine/godot/issues/96898 is resolved @@ -1604,17 +1603,17 @@ func set_limit_target(value: NodePath) -> void: # Waits for PCam2d's _ready() before trying to validate limit_node_path if not is_node_ready(): await ready - # Removes signal from existing TileMap node + # Removes signal from existing TileMapLayer node if is_instance_valid(get_node_or_null(value)): var prev_limit_node: Node2D = _limit_node var new_limit_node: Node2D = get_node(value) if prev_limit_node: - if prev_limit_node is TileMap or prev_limit_node.is_class("TileMapLayer"): + if prev_limit_node is TileMapLayer: if prev_limit_node.changed.is_connected(_on_tile_map_changed): prev_limit_node.changed.disconnect(_on_tile_map_changed) - if new_limit_node is TileMap or new_limit_node.is_class("TileMapLayer"): + if new_limit_node is TileMapLayer: if not new_limit_node.changed.is_connected(_on_tile_map_changed): new_limit_node.changed.connect(_on_tile_map_changed) elif new_limit_node is CollisionShape2D: @@ -1626,7 +1625,7 @@ func set_limit_target(value: NodePath) -> void: limit_target = "" return else: - printerr("Limit Target is not a TileMap, TileMapLayer or CollisionShape2D node") + printerr("Limit Target is not a TileMapLayer or CollisionShape2D node") return elif value == NodePath(""): reset_limit() diff --git a/addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd b/addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd index 6ffd061..95608c0 100644 --- a/addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd +++ b/addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd @@ -746,17 +746,12 @@ func _validate_property(property: Dictionary) -> void: property.usage = PROPERTY_USAGE_NO_EDITOR if property.name == "follow_offset": - if follow_mode == FollowMode.PATH or \ - follow_mode == FollowMode.GLUED: + if follow_mode == FollowMode.GLUED: property.usage = PROPERTY_USAGE_NO_EDITOR if property.name == "follow_damping_value" and not follow_damping: property.usage = PROPERTY_USAGE_NO_EDITOR - if property.name == "follow_offset": - if follow_mode == FollowMode.PATH: - property.usage = PROPERTY_USAGE_NO_EDITOR - if property.name == "follow_distance": if not follow_mode == FollowMode.FRAMED: if not follow_mode == FollowMode.GROUP or \ @@ -1061,9 +1056,9 @@ func _set_follow_position() -> void: var path_position: Vector3 = follow_path.global_position _follow_target_output_position = \ follow_path.curve.get_closest_point( - follow_target.global_position - path_position + _get_target_position_offset() - path_position ) + path_position - _set_follow_gizmo_line_position(follow_target.global_position) + _set_follow_gizmo_line_position(_get_target_position_offset()) FollowMode.FRAMED: if not Engine.is_editor_hint(): diff --git a/addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd b/addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd index 71b99cc..e5c5dd1 100644 --- a/addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd +++ b/addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd @@ -1296,41 +1296,39 @@ func _set_layer(current_layers: int, layer_number: int, value: bool) -> int: #region Public Functions -## Triggers a recalculation to determine which PhantomCamera has the highest priority. func pcam_priority_updated(pcam: Node) -> void: if not is_instance_valid(pcam): return if not _pcam_is_in_host_layer(pcam): return - if pcam == _active_pcam_2d or pcam == _active_pcam_3d: - if not pcam.visible: - refresh_pcam_list_priorty() - if Engine.is_editor_hint(): if _is_2d: - if not is_instance_valid(_active_pcam_2d): return if _active_pcam_2d.priority_override: return + if not is_instance_valid(_active_pcam_2d): return else: - if not is_instance_valid(_active_pcam_3d): return if _active_pcam_3d.priority_override: return + if not is_instance_valid(_active_pcam_3d): return - var current_pcam_priority: int = pcam.priority - - if current_pcam_priority >= _active_pcam_priority: - if _is_2d: - if pcam != _active_pcam_2d: - _assign_new_active_pcam(pcam) - else: - if pcam != _active_pcam_3d: - _assign_new_active_pcam(pcam) - pcam.set_tween_skip(self, false) - _active_pcam_missing = false - + ## Currently active PCam changed Priority if pcam == _active_pcam_2d or pcam == _active_pcam_3d: - if current_pcam_priority <= _active_pcam_priority: - _active_pcam_priority = current_pcam_priority + ## If PCam Node has become invisible / disabled + if not pcam.visible: + refresh_pcam_list_priorty() + ## If currently active PCam has a reduced Priority + elif pcam.priority < _active_pcam_priority: + _active_pcam_priority = pcam.priority _find_pcam_with_highest_priority() - else: - _active_pcam_priority = current_pcam_priority + ## Another PCam changed Priority + else: + ## Make new PCam active if Priority is higher or equal to the currently active + if pcam.priority >= _active_pcam_priority: + if _is_2d: + if pcam != _active_pcam_2d: + _assign_new_active_pcam(pcam) + else: + if pcam != _active_pcam_3d: + _assign_new_active_pcam(pcam) + pcam.set_tween_skip(self, false) + _active_pcam_missing = false ## Updates the viewfinder when a [param PhantomCamera] has its diff --git a/addons/reedscene/act/ActManager.gd b/addons/reedscene/act/ActManager.gd index d919a96..efbc784 100644 --- a/addons/reedscene/act/ActManager.gd +++ b/addons/reedscene/act/ActManager.gd @@ -23,11 +23,13 @@ var _gen_empty_act: Callable = Callable(self, "_editor_generate_empty_act") ## ==================== var _current_act: Act = null var _current_act_id: int = -1 + +const DEFAULT_ACT_ID:int = 0 + signal act_changed(from_act_id: int, to_act_id: int) func _ready() -> void: - ##初始默认把act 切换到Default状态 - switch_act_with_id(0) + pass ##通过ID切换act func switch_act_with_id(act_id: int) -> void: @@ -103,7 +105,7 @@ func _editor_generate_default_act() -> void: ) return - var props_root := scene.get_node_or_null(scene.props_root_path) + var props_root := scene.get_props_root() if props_root == null: _editor_popup( "Props root not found:\n%s" % scene.props_root_path, @@ -206,7 +208,7 @@ func _find_prop_by_id(prop_id: int) -> PropComponent: if scene == null: return null - var props_root := scene.get_node_or_null(scene.props_root_path) + var props_root := scene.get_props_root() if props_root == null: return null diff --git a/addons/reedscene/prop/PropComponent.gd b/addons/reedscene/prop/PropComponent.gd index bc812dd..9d3d924 100644 --- a/addons/reedscene/prop/PropComponent.gd +++ b/addons/reedscene/prop/PropComponent.gd @@ -13,16 +13,14 @@ class_name PropComponent extends Node ##此物件的描述ID,无法主动修改,由PropManager发信 @export_custom(PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_READ_ONLY) var prop_id: int = -1 - ##初始的默认state_id @export var initial_state_id: int = 0 - +##如果为真,则无论ActManger的配置为任何,在Inital的时候都会使用自己定义的initial state +@export var overwrite_init_state: bool = false ##是否需要输出错误 @export var debug_log := false - ##是否等待 @export var should_wait_owner_ready :bool = true - ##状态切换的信号 signal state_changed(from_state: int, to_state: int, ctx: Dictionary) @@ -42,15 +40,29 @@ func _enter_tree() -> void: func _ready() -> void: _build_state_cache() - if not Engine.is_editor_hint(): - if should_wait_owner_ready: await owner.ready + #if not Engine.is_editor_hint(): + #if should_wait_owner_ready: + #await owner.ready - _init_states() - if _current == null and initial_state_id >= 0: - change_state(initial_state_id, false, { - "reason": "INIT", - "instant": true - }) + #_init_states() + + #if _current == null and initial_state_id >= 0 and overwrite_init_state: + #change_state(initial_state_id, false, { + #"reason": "INIT", + #"instant": true + #}) + +## 用于初始化状态 +func init() -> void: + _init_states() + +## 用于检查初始状态复写的Check +func _init_state_check() ->void: + if _current == null and initial_state_id >= 0 and overwrite_init_state: + change_state(initial_state_id, false, { + "reason": "INIT", + "instant": true + }) ##映射State到stateID func _build_state_cache() -> void: diff --git a/addons/reedscene/prop/PropManager.gd b/addons/reedscene/prop/PropManager.gd index fe6db07..d7161eb 100644 --- a/addons/reedscene/prop/PropManager.gd +++ b/addons/reedscene/prop/PropManager.gd @@ -1,5 +1,4 @@ @tool -class_name PropManager extends Node2D ##是否要自动的向其子集中添加一个PropComp diff --git a/addons/reedscene/prop/ReedPropEffect.gd b/addons/reedscene/prop/ReedPropEffect.gd index bf92baf..ed5102a 100644 --- a/addons/reedscene/prop/ReedPropEffect.gd +++ b/addons/reedscene/prop/ReedPropEffect.gd @@ -7,6 +7,7 @@ class_name ReedPropEffect enum TargetType { OWNER, + ChildNode, NODE_PATH } @@ -19,6 +20,12 @@ enum EffectType { @export var target_type: TargetType = TargetType.OWNER ##如果选择了NodePath,则会读取此字段,默认不读取 @export var target_path: NodePath +##如果选择了ChildNode,则会读取此字段,默认不读取 +@export var child_node_name: StringName +##如果选择了ChildNode,则会读取此字段,是否要递归的查找某个子节点 +@export var recursive_found: bool = false +##如果选择了ChildNode,则会读取此字段,只检查该scene的子节点而忽略其他的外部添加的子节点 +@export var owned_node_only: bool = true ##作用的具体效果类别,默认为设置某个数值 @export var effect_type: EffectType = EffectType.SET_VALUE @@ -44,7 +51,6 @@ func apply(owner: Node, prop_comp: Node, ctx: Dictionary) -> void: match effect_type: EffectType.SET_VALUE: - # 你也可以加 has_property 检查,但 Godot 没有统一 API,这里先直接 set target.set(property_name, value) EffectType.CALL_FUNC: @@ -56,6 +62,9 @@ func _resolve_target(owner: Node, prop_comp: Node) -> Object: match target_type: TargetType.OWNER: return owner + TargetType.ChildNode: + if owner: + return owner.find_child(child_node_name,recursive_found,owned_node_only) TargetType.NODE_PATH: if owner: return owner.get_node_or_null(target_path) diff --git a/addons/reedscene/scene/ReedScene.gd b/addons/reedscene/scene/ReedScene.gd index cae2c37..ed080ab 100644 --- a/addons/reedscene/scene/ReedScene.gd +++ b/addons/reedscene/scene/ReedScene.gd @@ -5,8 +5,9 @@ 你可以这样理解,一个level(大关卡),带有n个小关卡,n = scene的数量 Scene 必须带有: - 1.Act Manager - 2.复数个Prop + 1.SceneManager + 2.Act Manager + 3.复数个Prop 其中: ActManager下,带有复数个Act,其主要用于记录各个Prop的不同state,当Act切换时,Prop对应的状态也会切换。 ActManager的主要作用就是管理这些Act的切换。 @@ -36,20 +37,25 @@ class_name ReedScene extends Node2D ## ============================== ## Const Config ## ============================== - ##Act管理器的命名 const ACT_MANAGER_NAME := "ActManager" ##Prop的根节点命名 const PROPS_ROOT_NAME := "Props" ##场景管理器的根节点命名 const SCENE_MANAGER_NAME := "SceneManager" +##Prop的路徑 +const PROPS_ROOT_PATH: NodePath = ^"Props" +##PropManager脚本的路徑 +const PROPS_MANAGER_SCRIPT: Script = preload("res://addons/reedscene/prop/PropManager.gd") ## ============================== ## Export Config ## ============================== -@export var props_root_path: NodePath = ^"Props" + +##是否要自動的為Props下的Node添加PropComponent @export var auto_attach_prop_component := true -@export var debug_log := true +##是否要打印DebugLog +@export var debug_log := false ## ============================== ## Internal State @@ -81,8 +87,22 @@ func _ready() -> void: _collect_props() _bind_act_events() - if not Engine.is_editor_hint(): - ReedSceneRegistry.register_scene(self) + if Engine.is_editor_hint(): + return + + ## 初始化Prop + var pcs : Array = _prop_map.values() + for pc in pcs: + pc.init() + + ## act manger 切换一次 + _act_manager.switch_act_with_id(_act_manager.DEFAULT_ACT_ID) + + ## 如果prop有复写init state的选项,则overwrite + for pc in pcs: + pc._init_state_check() + ReedSceneRegistry.register_scene(self) + ## ============================== ## Resolve References ## ============================== @@ -103,9 +123,9 @@ func _resolve_act_manager() -> void: return func _resolve_props_root() -> void: - _props_root = get_node_or_null(props_root_path) + _props_root = get_node_or_null(PROPS_ROOT_PATH) if _props_root == null: - push_error("[ReedScene] Props root not found: %s" % props_root_path) + push_error("[ReedScene] Props root not found: %s" % PROPS_ROOT_PATH) func _resolve_scene_manager() -> void: _scene_manager = get_node_or_null(SCENE_MANAGER_NAME) @@ -114,11 +134,11 @@ func _resolve_scene_manager() -> void: ## ============================== ## Prop Collection ## ============================== - func _collect_props() -> void: _prop_map.clear() if _props_root == null: + push_warning("[ReedScene]:Scene[ID:%s] dont have a prop root" % _scene_id_comp.get_scene_id()) return for prop in _props_root.get_children(): @@ -143,6 +163,7 @@ func _collect_props() -> void: if debug_log: print("[ReedScene] Registered Prop:", prop_id) +##獲取到一個Prop的PropComp func _find_prop_component(prop: Node) -> PropComponent: for child in prop.get_children(): if child is PropComponent: @@ -166,7 +187,7 @@ func _on_act_changed(from_act: int, to_act: int) -> void: func _editor_ensure_scene_nodes() -> void: _editor_ensure_node(SCENE_MANAGER_NAME, SceneManager) _editor_ensure_node(ACT_MANAGER_NAME, ActManager) - _editor_ensure_node(PROPS_ROOT_NAME, PropManager) + _editor_ensure_node_from_script(PROPS_ROOT_NAME,PROPS_MANAGER_SCRIPT) ##添加命名和节点 func _editor_ensure_node(name: String, type: Variant) -> Node: @@ -185,6 +206,28 @@ func _editor_ensure_node(name: String, type: Variant) -> Node: return node +##通過脚本添加節點 +func _editor_ensure_node_from_script( + name: String, + script: Script +) -> Node: + assert(script != null) + + var node := get_node_or_null(name) + if node != null: + return node + + node = script.new() + node.name = name + add_child(node) + + node.owner = get_tree().edited_scene_root + + if debug_log: + print("[ReedScene][Editor] Created node from script:", name) + + return node + ##保證存在ID節點 func _editor_ensure_scene_id_comp() -> ReedSceneID: # 1️. 查找已有的 ReedSceneID(只找直接子节点) @@ -212,18 +255,40 @@ func _editor_ensure_scene_id_comp() -> ReedSceneID: return id_comp +## ============================== +## Externel API +## ============================== + +## 外部取得Prop映射對 +func get_prop_map() -> Dictionary: + return _prop_map + +## 切換Act func switch_act_by_id(act_id: int) -> void: if not _act_manager: push_warning("[ReedScene] ActManager requested before ready.") _act_manager.switch_act_with_id(act_id) +## 獲取關卡管理器 func get_scene_manager() -> SceneManager: if _scene_manager == null: push_warning("[ReedScene] SceneManager requested before ready.") return _scene_manager +## 獲取SceneID Comp func get_scene_id_comp() -> ReedSceneID: if _scene_id_comp == null: push_warning("[ReedScene] Scene not has a ID Comp.") return _scene_id_comp + +## 獲取Prop的根節點 +func get_props_root() -> Node2D: + return _props_root + +## 獲取SceneID +func get_scene_id() -> int: + if get_scene_id_comp().has_id(): + return get_scene_id_comp().scene_id + + return -1 diff --git a/addons/reedscene/scene/ReedSceneID.gd b/addons/reedscene/scene/ReedSceneID.gd index 692a54e..e573a94 100644 --- a/addons/reedscene/scene/ReedSceneID.gd +++ b/addons/reedscene/scene/ReedSceneID.gd @@ -95,3 +95,7 @@ func _get_configuration_warnings() -> PackedStringArray: warnings.append(msg) return warnings + +## 獲取Scene id的接口 +func get_scene_id() ->int: + return _scene_id diff --git a/addons/reedscene/update.md b/addons/reedscene/update.md index d7e26d1..a3a3199 100644 --- a/addons/reedscene/update.md +++ b/addons/reedscene/update.md @@ -17,3 +17,8 @@ V0.3 V1.0 - Scene管理器全局ID功能 + +V1.1 + +- 删除不必要的ClassName +- 完善ActManager的编辑者友好界面