[gd_scene load_steps=14 format=3 uid="uid://cohjnl5ts70fy"] [ext_resource type="Texture2D" uid="uid://bkk66gg8hccgo" path="res://Game/Player/assets/AttackSymbol.png" id="1_1ro1o"] [ext_resource type="Script" path="res://Game/Player/scripts/Movement.gd" id="1_qtxkv"] [ext_resource type="Texture2D" uid="uid://voppdllbhdn" path="res://Game/Player/assets/Dash_Icon.png" id="2_ghk3h"] [ext_resource type="Texture2D" uid="uid://dtrlci58skaic" path="res://Game/Player/assets/Death_Sprites-Sheet-Sheet.png" id="2_yhbdj"] [ext_resource type="Script" path="res://Game/Player/scripts/Dash.gd" id="4_u0rky"] [ext_resource type="Texture2D" uid="uid://dvwx64sdhmu15" path="res://Game/Player/assets/Scythe.png" id="5_3lhyn"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_dtw7i"] size = Vector2(66, 110) [sub_resource type="Animation" id="Animation_hchml"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite: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("Sprite:frame_coords") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [Vector2i(0, 1)] } [sub_resource type="Animation" id="Animation_32knf"] resource_name = "attack" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame_coords") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.9), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [Vector2i(0, 0), Vector2i(3, 0)] } [sub_resource type="Animation" id="Animation_2xtxu"] resource_name = "idle" length = 4.0 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame_coords") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 1.3), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [Vector2i(0, 1), Vector2i(1, 1)] } [sub_resource type="Animation" id="Animation_uxjx4"] resource_name = "walkRight" length = 0.8 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.2, 0.4, 0.6), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_mvavq"] _data = { "RESET": SubResource("Animation_hchml"), "attack": SubResource("Animation_32knf"), "idle": SubResource("Animation_2xtxu"), "walkRight": SubResource("Animation_uxjx4") } [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_mhkm5"] radius = 32.82 height = 158.0 [node name="Player" type="Node"] [node name="Control" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="MarginContainer" type="MarginContainer" parent="Control"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 10 theme_override_constants/margin_top = 10 theme_override_constants/margin_right = 10 theme_override_constants/margin_bottom = 10 [node name="HBoxContainer" type="HBoxContainer" parent="Control/MarginContainer"] layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 8 [node name="TextureProgressBar" type="TextureProgressBar" parent="Control/MarginContainer/HBoxContainer"] layout_mode = 2 max_value = 4.0 step = 0.01 fill_mode = 4 texture_progress = ExtResource("1_1ro1o") [node name="TextureProgressBar2" type="TextureProgressBar" parent="Control/MarginContainer/HBoxContainer"] texture_filter = 1 layout_mode = 2 max_value = 2.0 step = 0.01 value = 2.0 fill_mode = 4 texture_progress = ExtResource("2_ghk3h") [node name="CharacterController" type="CharacterBody2D" parent="." node_paths=PackedStringArray("Progressar", "bashbar")] position = Vector2(934, 521) collision_layer = 4 collision_mask = 4 script = ExtResource("1_qtxkv") Progressar = NodePath("../Control/MarginContainer/HBoxContainer/TextureProgressBar") bashbar = NodePath("../Control/MarginContainer/HBoxContainer/TextureProgressBar2") [node name="Sprite" type="Sprite2D" parent="CharacterController"] texture_filter = 1 scale = Vector2(5, 5) texture = ExtResource("2_yhbdj") hframes = 4 vframes = 2 frame = 4 [node name="Collider" type="CollisionShape2D" parent="CharacterController"] visibility_layer = 2 shape = SubResource("RectangleShape2D_dtw7i") [node name="Animation" type="AnimationPlayer" parent="CharacterController"] libraries = { "": SubResource("AnimationLibrary_mvavq") } [node name="Scythe" type="Node2D" parent="CharacterController"] position = Vector2(101.18, 0) [node name="Sprite2D" type="Sprite2D" parent="CharacterController/Scythe"] texture_filter = 1 scale = Vector2(5, 5) texture = ExtResource("5_3lhyn") [node name="Area2D" type="Area2D" parent="CharacterController/Scythe"] collision_layer = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterController/Scythe/Area2D"] shape = SubResource("CapsuleShape2D_mhkm5") [node name="Dash" type="Node2D" parent="CharacterController"] script = ExtResource("4_u0rky") [node name="Timer" type="Timer" parent="CharacterController/Dash"] wait_time = 2.0 one_shot = true [connection signal="body_entered" from="CharacterController/Scythe/Area2D" to="CharacterController" method="_on_area_2d_body_entered"]