[gd_scene load_steps=22 format=3 uid="uid://cfecvvav8kkp6"] [ext_resource type="Script" path="res://src/player/Player.cs" id="1_xcol5"] [ext_resource type="Texture2D" uid="uid://bokx3h8kfdo5i" path="res://src/player/slash_0000_Classic_30.png" id="2_la11l"] [ext_resource type="Script" path="res://src/hitbox/Hitbox.cs" id="2_lb3qc"] [ext_resource type="Script" path="res://src/player/PlayerStatInfo.cs" id="2_n88di"] [ext_resource type="Texture2D" uid="uid://byosr5gk51237" path="res://src/player/slash_0001_Classic_29.png" id="3_ux3f1"] [ext_resource type="Texture2D" uid="uid://nh071o6ii03j" path="res://src/player/slash_0002_Classic_28.png" id="4_gqnq0"] [ext_resource type="Texture2D" uid="uid://bodfblud4kea3" path="res://src/player/slash_0003_Classic_27.png" id="5_eebal"] [ext_resource type="Texture2D" uid="uid://de55prolicl0u" path="res://src/player/slash_0004_Classic_26.png" id="6_ngag5"] [ext_resource type="Texture2D" uid="uid://bp0msic3uk3kc" path="res://src/player/slash_0005_Layer-1.png" id="7_tp5uu"] [ext_resource type="Texture2D" uid="uid://hg2kraa5nrnl" path="res://src/ui/textures/blank level symbol.png" id="10_rsd7v"] [ext_resource type="LabelSettings" uid="uid://ca1q6yu8blwxf" path="res://src/ui/label_settings/InventoryMainTextBold.tres" id="11_6gvkm"] [ext_resource type="LabelSettings" uid="uid://dupifadnagodp" path="res://src/ui/label_settings/MainTextRegular.tres" id="12_f4uqk"] [sub_resource type="Resource" id="Resource_up0v1"] script = ExtResource("2_n88di") CurrentHP = 100.0 MaximumHP = 100.0 CurrentVT = 90 MaximumVT = 90 CurrentLevel = 1 CurrentEXP = 0 EXPToNextLevel = 100 CurrentAttack = 12 MaxAttack = 12 CurrentDefense = 8 MaxDefense = 8 BonusAttack = 0 BonusDefense = 0 [sub_resource type="BoxShape3D" id="BoxShape3D_wedu3"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw45s"] height = 1.7 [sub_resource type="CapsuleMesh" id="CapsuleMesh_dmans"] height = 1.7 [sub_resource type="BoxShape3D" id="BoxShape3D_hs4wf"] size = Vector3(1.94531, 2.43945, 1.08447) [sub_resource type="Animation" id="Animation_hcjph"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SwordSlashAnimation:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Hitbox/HitboxCollision:disabled") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [true] } [sub_resource type="Animation" id="Animation_0jjwv"] resource_name = "attack" length = 0.7 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SwordSlashAnimation:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.0667, 0.1667, 0.2667, 0.366667, 0.433333, 0.5, 0.6333), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3, 4, 5, 6, 7] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Hitbox/HitboxCollision:disabled") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.1667, 0.3333), "transitions": PackedFloat32Array(1, 1, 1), "update": 1, "values": [true, false, true] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_w8l8m"] _data = { "RESET": SubResource("Animation_hcjph"), "attack": SubResource("Animation_0jjwv") } [sub_resource type="SpriteFrames" id="SpriteFrames_ywvvo"] animations = [{ "frames": [{ "duration": 1.0, "texture": null }, { "duration": 1.0, "texture": ExtResource("2_la11l") }, { "duration": 1.0, "texture": ExtResource("3_ux3f1") }, { "duration": 1.0, "texture": ExtResource("4_gqnq0") }, { "duration": 1.0, "texture": ExtResource("5_eebal") }, { "duration": 1.0, "texture": ExtResource("6_ngag5") }, { "duration": 1.0, "texture": ExtResource("7_tp5uu") }, { "duration": 1.0, "texture": null }], "loop": false, "name": &"attack", "speed": 12.0 }] [node name="Player" type="CharacterBody3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.381018, 0) collision_layer = 38 collision_mask = 7 script = ExtResource("1_xcol5") RotationSpeed = 0.025 MoveSpeed = 2.0 PlayerStatInfo = SubResource("Resource_up0v1") [node name="Hitbox" type="Area3D" parent="."] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1) collision_layer = 16 collision_mask = 16 script = ExtResource("2_lb3qc") [node name="HitboxCollision" type="CollisionShape3D" parent="Hitbox"] shape = SubResource("BoxShape3D_wedu3") disabled = true [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.937567, 0) shape = SubResource("CapsuleShape3D_dw45s") [node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D"] mesh = SubResource("CapsuleMesh_dmans") [node name="CollisionDetector" type="Area3D" parent="CollisionShape3D"] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.937567, 0) collision_layer = 196 collision_mask = 132 [node name="CollisionShape3D" type="CollisionShape3D" parent="CollisionShape3D/CollisionDetector"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0479561, 0.982638, -0.04021) shape = SubResource("BoxShape3D_hs4wf") [node name="Camera3D" type="Camera3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.163955, 1.13605, -0.159032) cull_mask = 1048573 [node name="OmniLight3D" type="OmniLight3D" parent="."] light_energy = 4.183 omni_range = 83.659 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] unique_name_in_owner = true libraries = { "": SubResource("AnimationLibrary_w8l8m") } [node name="SwordSlashAnimation" type="AnimatedSprite2D" parent="."] unique_name_in_owner = true scale = Vector2(9.03192, 6.39623) sprite_frames = SubResource("SpriteFrames_ywvvo") animation = &"attack" [node name="HealthTimer" type="Timer" parent="."] unique_name_in_owner = true process_mode = 1 wait_time = 3.0 autostart = true [node name="PlayerInfoUI" type="MarginContainer" parent="."] offset_right = 629.0 offset_bottom = 256.0 theme_override_constants/margin_left = 32 [node name="HBoxContainer" type="HBoxContainer" parent="PlayerInfoUI"] layout_mode = 2 [node name="CenterContainer" type="CenterContainer" parent="PlayerInfoUI/HBoxContainer"] layout_mode = 2 [node name="TextureRect" type="TextureRect" parent="PlayerInfoUI/HBoxContainer/CenterContainer"] custom_minimum_size = Vector2(128, 128) layout_mode = 2 size_flags_vertical = 3 texture = ExtResource("10_rsd7v") expand_mode = 1 stretch_mode = 4 [node name="Level" type="Label" parent="PlayerInfoUI/HBoxContainer/CenterContainer"] custom_minimum_size = Vector2(80, 80) layout_mode = 2 text = "99" label_settings = ExtResource("11_6gvkm") horizontal_alignment = 1 vertical_alignment = 1 [node name="VBox" type="VBoxContainer" parent="PlayerInfoUI/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 4 theme_override_constants/separation = 15 [node name="HBox" type="HBoxContainer" parent="PlayerInfoUI/HBoxContainer/VBox"] layout_mode = 2 size_flags_horizontal = 3 [node name="HP" type="Label" parent="PlayerInfoUI/HBoxContainer/VBox/HBox"] layout_mode = 2 text = "HP: " label_settings = ExtResource("11_6gvkm") [node name="ReferenceRect" type="ReferenceRect" parent="PlayerInfoUI/HBoxContainer/VBox/HBox"] custom_minimum_size = Vector2(30, 0) layout_mode = 2 border_width = 0.0 [node name="HPNumber" type="Label" parent="PlayerInfoUI/HBoxContainer/VBox/HBox"] unique_name_in_owner = true layout_mode = 2 text = "222/222" label_settings = ExtResource("12_f4uqk") [node name="HBox2" type="HBoxContainer" parent="PlayerInfoUI/HBoxContainer/VBox"] layout_mode = 2 [node name="VT" type="Label" parent="PlayerInfoUI/HBoxContainer/VBox/HBox2"] layout_mode = 2 text = "VT:" label_settings = ExtResource("11_6gvkm") [node name="ReferenceRect" type="ReferenceRect" parent="PlayerInfoUI/HBoxContainer/VBox/HBox2"] custom_minimum_size = Vector2(30, 0) layout_mode = 2 border_width = 0.0 [node name="VTNumber" type="Label" parent="PlayerInfoUI/HBoxContainer/VBox/HBox2"] unique_name_in_owner = true layout_mode = 2 text = "444/444" label_settings = ExtResource("12_f4uqk") [node name="TextureButton" type="TextureButton" parent="PlayerInfoUI"] layout_mode = 2 [node name="Marker3D" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.70201)