104 lines
3.4 KiB
Plaintext
104 lines
3.4 KiB
Plaintext
[gd_scene format=3 uid="uid://b2wq5m01b68rx"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://hop1gedjh8s4" path="res://Assets/Spritesheets/Player/icons_full_32.png" id="1_0h1c2"]
|
|
[ext_resource type="Script" uid="uid://j5yj4piyfql1" path="res://Entities/Weapons/Projectiles/Scripts/wooden_arrow.gd" id="1_44gti"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0h1c2"]
|
|
size = Vector2(10, 2)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_44gti"]
|
|
size = Vector2(11, 2)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_44gti"]
|
|
atlas = ExtResource("1_0h1c2")
|
|
region = Rect2(320, 1056, 32, 32)
|
|
|
|
[sub_resource type="Animation" id="Animation_44gti"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.7853982]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_321dg"]
|
|
resource_name = "shaking"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [0.7853982, 1.1344640137963142, 0.7853982, 0.4363323129985824, 0.7853982]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, -1.705), Vector2(0, 0), Vector2(0, 1.73), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_m21sp"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_44gti"),
|
|
&"shaking": SubResource("Animation_321dg")
|
|
}
|
|
|
|
[node name="Wooden Arrow" type="CharacterBody2D" unique_id=609733948]
|
|
z_index = 1
|
|
collision_layer = 4
|
|
collision_mask = 4
|
|
script = ExtResource("1_44gti")
|
|
metadata/_custom_type_script = "uid://8q26ldhfyijx"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1657279556]
|
|
shape = SubResource("RectangleShape2D_0h1c2")
|
|
|
|
[node name="Collision Detector" type="Area2D" parent="." unique_id=367998143]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision Detector" unique_id=740276065]
|
|
position = Vector2(0.5, 0)
|
|
shape = SubResource("RectangleShape2D_44gti")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=442865143]
|
|
rotation = 0.7853982
|
|
scale = Vector2(0.3, 0.3)
|
|
texture = SubResource("AtlasTexture_44gti")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1874694929]
|
|
libraries/ = SubResource("AnimationLibrary_m21sp")
|
|
|
|
[connection signal="area_entered" from="Collision Detector" to="." method="_on_collision_detector_area_entered"]
|
|
[connection signal="body_entered" from="Collision Detector" to="." method="_on_collision_detector_body_entered"]
|