157 lines
6.0 KiB
Plaintext
157 lines
6.0 KiB
Plaintext
[gd_scene load_steps=19 format=3 uid="uid://bacgd5lmvaxea"]
|
|
|
|
[ext_resource type="Script" uid="uid://bcgt64gerg8pv" path="res://Scripts/player.gd" id="1_5wxv7"]
|
|
[ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_y6xdh"]
|
|
[ext_resource type="Script" uid="uid://bk6205bvyl0to" path="res://Scripts/player_state_machine.gd" id="2_y5hcb"]
|
|
[ext_resource type="Script" uid="uid://c2xwiexy5b3b3" path="res://Scripts/player_attack.gd" id="3_knrd4"]
|
|
[ext_resource type="Script" uid="uid://wnisqyoyai2h" path="res://Scripts/player_on_floor.gd" id="4_hck1p"]
|
|
[ext_resource type="Script" uid="uid://dhnl0penaqfkx" path="res://Scripts/player_dodge_roll.gd" id="5_hck1p"]
|
|
[ext_resource type="Script" uid="uid://255h63wdkwpv" path="res://Scripts/ranged_attack.gd" id="6_08u7w"]
|
|
[ext_resource type="PackedScene" uid="uid://b12w4ut17srje" path="res://Assets/Models/Character1.blend" id="7_juxdh"]
|
|
[ext_resource type="PackedScene" uid="uid://bxye0cuxw1mbr" path="res://Prefabs/arrow.tscn" id="7_kgmex"]
|
|
[ext_resource type="PackedScene" uid="uid://b4c4cu400yrgt" path="res://Assets/Models/SwordCursor.blend" id="8_4qbli"]
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_5wxv7"]
|
|
size = Vector3(0.945, 0.13, 0.135)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_08u7w"]
|
|
transparency = 1
|
|
albedo_color = Color(1, 1, 1, 0)
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y5hcb"]
|
|
radius = 0.362
|
|
|
|
[sub_resource type="Animation" id="Animation_juxdh"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
tracks/1/type = "position_3d"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Body/ShittySword")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = PackedFloat32Array(0, 1, 0.652269, 0.475497, -0.696594)
|
|
|
|
[sub_resource type="Animation" id="Animation_4qbli"]
|
|
resource_name = "attack"
|
|
length = 0.5
|
|
tracks/0/type = "position_3d"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body/ShittySword")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = PackedFloat32Array(0, 1, 0.652269, 0.475497, -0.696594, 0.166667, 1, 0.870782, 0.475497, -0.508641, 0.193146, 1, 0.870782, 0.475497, -0.508641, 0.3, 1, -0.309897, 0.475497, -0.720175, 0.433352, 1, 0.652269, 0.475497, -0.696594)
|
|
tracks/1/type = "rotation_3d"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Body/ShittySword")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = PackedFloat32Array(0, 1, 0, -0.86255, 0, 0.505973, 0.166667, 1, 0, 0.949105, 0, -0.314961, 0.193146, 1, 0, 0.949105, 0, -0.314961, 0.3, 1, 0, -0.371061, 0, 0.928609, 0.433352, 1, 0, -0.86255, 0, 0.505973)
|
|
|
|
[sub_resource type="Animation" id="Animation_hck1p"]
|
|
resource_name = "dodge"
|
|
length = 0.3
|
|
step = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:rotation")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(0, 0, 6.28319)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4qbli"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_juxdh"),
|
|
&"attack": SubResource("Animation_4qbli"),
|
|
&"dodge": SubResource("Animation_hck1p")
|
|
}
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_juxdh"]
|
|
radius = 2.5
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
collision_layer = 20
|
|
collision_mask = 5
|
|
script = ExtResource("1_5wxv7")
|
|
|
|
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
|
transform = Transform3D(1, -1.74846e-07, 0, 1.74846e-07, 1, 0, 0, 0, 1, -2.406e-07, 1.87607, 0.0537765)
|
|
light_energy = 0.1
|
|
|
|
[node name="State Machine" type="Node" parent="." node_paths=PackedStringArray("character", "initial_state")]
|
|
script = ExtResource("2_y5hcb")
|
|
character = NodePath("..")
|
|
initial_state = NodePath("On Floor")
|
|
|
|
[node name="Attack" type="Node" parent="State Machine"]
|
|
script = ExtResource("3_knrd4")
|
|
|
|
[node name="On Floor" type="Node" parent="State Machine"]
|
|
script = ExtResource("4_hck1p")
|
|
move_speed = 7.0
|
|
|
|
[node name="Dodge Roll" type="Node" parent="State Machine"]
|
|
script = ExtResource("5_hck1p")
|
|
|
|
[node name="Ranged Attack" type="Node" parent="State Machine"]
|
|
script = ExtResource("6_08u7w")
|
|
fired_object = ExtResource("7_kgmex")
|
|
|
|
[node name="Body" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.0537765)
|
|
material_override = ExtResource("1_y6xdh")
|
|
skeleton = NodePath("")
|
|
metadata/extras = {
|
|
"poliigon_props": {},
|
|
"rr_curve_obj": {}
|
|
}
|
|
|
|
[node name="Character1" parent="Body" instance=ExtResource("7_juxdh")]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.5, 0.0393383)
|
|
|
|
[node name="ShittySword" type="MeshInstance3D" parent="Body"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.652269, 0.475497, -0.696594)
|
|
mesh = SubResource("BoxMesh_5wxv7")
|
|
skeleton = NodePath("../..")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_08u7w")
|
|
|
|
[node name="SwordCursor" parent="Body/ShittySword" instance=ExtResource("8_4qbli")]
|
|
transform = Transform3D(0.644047, 0.760603, 0.0817732, -3.35396e-06, -0.106892, 0.994271, 0.764986, -0.640357, -0.068841, -0.0904393, 4.17233e-07, 0.438631)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_y5hcb")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_4qbli")
|
|
}
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 16
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
shape = SubResource("SphereShape3D_juxdh")
|
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|