237 lines
6.5 KiB
Plaintext
237 lines
6.5 KiB
Plaintext
[gd_scene load_steps=13 format=4]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Entities/Entity.cs" id="1"]
|
|
[ext_resource type="Texture2D" path="res://Sprites/Characters/ch2dw chars.png" id="2"]
|
|
|
|
[sub_resource type="Animation" id="Animation_6n0ap"]
|
|
resource_name = "Angry"
|
|
length = 0.20000000298023224
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(170, 120, 50, 30), Rect2(170, 150, 50, 30)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_24s02"]
|
|
resource_name = "Attack"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.5, 0.7, 0.8, 0.9),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(170, 120, 50, 30), Rect2(170, 150, 50, 30), Rect2(110, 160, 50, 40), Rect2(60, 180, 50, 30), Rect2(60, 210, 50, 30), Rect2(10, 210, 50, 30)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:offset")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 0.7),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2(0, -15), Vector2(0, -20), Vector2(0, -15)]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [30.0, 1.0],
|
|
"method": &"Shake"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0tl0o"]
|
|
resource_name = "Hurt"
|
|
length = 0.0010000000474974513
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Rect2(110, 120, 50, 40)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:offset")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2(0, -20)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ffbfl"]
|
|
resource_name = "Idle"
|
|
length = 0.4000000059604645
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(60, 120, 50, 30), Rect2(60, 150, 50, 30)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:offset")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2(0, -15)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_jpkyi"]
|
|
length = 0.0010000000474974513
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Rect2(60, 120, 50, 30)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:offset")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -15)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_nnp5w"]
|
|
resource_name = "Talk"
|
|
length = 0.20000000298023224
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(60, 120, 50, 30), Rect2(60, 150, 50, 30)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0l3qu"]
|
|
resource_name = "Walk"
|
|
length = 0.20000000298023224
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(60, 120, 50, 30), Rect2(60, 150, 50, 30)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_eqaun"]
|
|
_data = {
|
|
&"Angry": SubResource("Animation_6n0ap"),
|
|
&"Attack": SubResource("Animation_24s02"),
|
|
&"Hurt": SubResource("Animation_0tl0o"),
|
|
&"Idle": SubResource("Animation_ffbfl"),
|
|
&"RESET": SubResource("Animation_jpkyi"),
|
|
&"Talk": SubResource("Animation_nnp5w"),
|
|
&"Walk": SubResource("Animation_0l3qu")
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pxlib"]
|
|
size = Vector2(21, 17)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ptpg2"]
|
|
radius = 17.0
|
|
|
|
[node name="Drill" type="CharacterBody2D" node_paths=PackedStringArray("extras", "anim", "sprite", "collider", "trigger")]
|
|
script = ExtResource("1")
|
|
id = 103
|
|
singleDirection = true
|
|
replaceAnim = [["Walk", "Idle"]]
|
|
spriteSideOffset = PackedVector2Array(-9, 0, 9, 0)
|
|
extras = []
|
|
anim = NodePath("AnimationPlayer")
|
|
sprite = NodePath("Sprite")
|
|
collider = NodePath("CollisionShape2D")
|
|
trigger = NodePath("Trigger")
|
|
metadata/WeakFire = true
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_eqaun")
|
|
}
|
|
autoplay = "Idle"
|
|
next/Attack = &"Idle"
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
position = Vector2(-9, 0)
|
|
texture = ExtResource("2")
|
|
offset = Vector2(0, -15)
|
|
region_enabled = true
|
|
region_rect = Rect2(60, 120, 50, 30)
|
|
region_filter_clip_enabled = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0.5, -13.5)
|
|
shape = SubResource("RectangleShape2D_pxlib")
|
|
|
|
[node name="Trigger" type="Area2D" parent="."]
|
|
position = Vector2(5, 0)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
|
|
position = Vector2(-5, -17)
|
|
shape = SubResource("CircleShape2D_ptpg2")
|