Tales-of-PKMN/game/player/PlayerCharacter.tscn
2026-09-01 13:31:35 +02:00

82 lines
3.8 KiB
Plaintext

[gd_scene format=3 uid="uid://dwxpt0s7vn36k"]
[ext_resource type="Script" uid="uid://br1dfd4fltlef" path="res://game/player/StateMachine/PlayerCharacter.gd" id="1_lg056"]
[ext_resource type="PackedScene" uid="uid://b2gh50nogfllj" path="res://game/player/Camera/CameraHolder.tscn" id="1_obar5"]
[ext_resource type="Script" uid="uid://c8vfvcjtsb220" path="res://game/player/InputManagementComponent/InputManagementComponent.gd" id="2_r5dqo"]
[ext_resource type="Script" uid="uid://dy4wrpvpep1jq" path="res://game/player/StateMachine/StateMachine.gd" id="3_o4naa"]
[ext_resource type="Script" uid="uid://bf6hjwfa74ttj" path="res://game/player/StateMachine/IdleState.gd" id="4_38lxl"]
[ext_resource type="Script" uid="uid://2agliol5dulc" path="res://game/player/StateMachine/WalkState.gd" id="4_lg056"]
[ext_resource type="Script" uid="uid://dr5p8ygj25w6x" path="res://game/player/StateMachine/JumpState.gd" id="6_lwgph"]
[sub_resource type="Curve" id="Curve_kxr4l"]
_limits = [0.0, 10.0, 0.0, 1.0]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 2.3387098), 0.0, 0.0, 0, 0, Vector2(1, 6.370968), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="Curve" id="Curve_j4mf1"]
_limits = [0.0, 10.0, 0.0, 1.0]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 10), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Curve" id="Curve_6abew"]
_limits = [0.0, 10.0, 0.0, 1.0]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 3.467742), 0.0, 0.0, 0, 0, Vector2(1, 6.451613), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="Curve" id="Curve_mi63v"]
_limits = [0.0, 10.0, 0.0, 1.0]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 9.83871), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="BoxMesh" id="BoxMesh_3agn1"]
size = Vector3(0.1484375, 0.1640625, 0.907959)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3agn1"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3agn1"]
[node name="PlayerCharacter" type="CharacterBody3D" unique_id=1830301535]
script = ExtResource("1_lg056")
in_air_move_speed = Array[Curve]([SubResource("Curve_kxr4l"), SubResource("Curve_j4mf1")])
in_air_accel = Array[Curve]([SubResource("Curve_6abew"), SubResource("Curve_mi63v")])
hit_wall_cut_velocity = true
follow_cam_pos_when_aimed = true
[node name="VisualRoot" type="Node3D" parent="." unique_id=1587327772]
unique_name_in_owner = true
[node name="MeshInstance3D2" type="MeshInstance3D" parent="VisualRoot" unique_id=670759105]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4555889, 0.5468005)
mesh = SubResource("BoxMesh_3agn1")
[node name="MeshInstance3D" type="MeshInstance3D" parent="VisualRoot" unique_id=1202850119]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_3agn1")
[node name="CameraHolder" parent="." unique_id=232451612 instance=ExtResource("1_obar5")]
unique_name_in_owner = true
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.009075999, 1.6803148, 0.01983509)
fov_val = 30.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1800756522]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_3agn1")
[node name="StateMachine" type="Node" parent="." unique_id=1128144703 node_paths=PackedStringArray("initial_state")]
unique_name_in_owner = true
script = ExtResource("3_o4naa")
initial_state = NodePath("IdleState")
[node name="IdleState" type="Node" parent="StateMachine" unique_id=1417869633]
script = ExtResource("4_38lxl")
[node name="WalkState" type="Node" parent="StateMachine" unique_id=1524475809]
script = ExtResource("4_lg056")
[node name="JumpState" type="Node" parent="StateMachine" unique_id=711160985]
script = ExtResource("6_lwgph")
[node name="InputManagementComponent" type="Node" parent="." unique_id=1981951371]
script = ExtResource("2_r5dqo")