2023-06-12 22:06:48 +02:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://bktg1ypaav3q3"]
|
2023-06-11 23:38:54 +02:00
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bbwsdd0jddmck" path="res://art/Pink_Monster_Walk_6.png" id="1_e5603"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_l5lyv"]
|
2023-06-12 17:58:06 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dylr4xf3far68" path="res://art/Pink_Monster_Idle_4.png" id="2_duxxr"]
|
2023-06-12 22:06:48 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bydnrc6ixlv8w" path="res://art/Pink_Monster_Throw_4.png" id="2_iscwr"]
|
2023-06-12 16:48:35 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b51tdt5kunai" path="res://scenes/enemy_behavior_tree.tscn" id="3_jk76t"]
|
2023-06-11 23:38:54 +02:00
|
|
|
|
2023-06-12 22:06:48 +02:00
|
|
|
[sub_resource type="Animation" id="Animation_ouyrp"]
|
|
|
|
length = 0.001
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_6vdwd"]
|
|
|
|
resource_name = "idle"
|
|
|
|
length = 0.4
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:texture")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ExtResource("2_duxxr")]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("Sprite2D:hframes")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [4]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3]
|
|
|
|
}
|
|
|
|
|
2023-06-11 23:38:54 +02:00
|
|
|
[sub_resource type="Animation" id="Animation_etqki"]
|
|
|
|
resource_name = "walk"
|
|
|
|
length = 0.6
|
|
|
|
loop_mode = 1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2023-06-12 17:58:06 +02:00
|
|
|
tracks/0/path = NodePath("Sprite2D:texture")
|
2023-06-11 23:38:54 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2023-06-12 17:58:06 +02:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ExtResource("1_e5603")]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("Sprite2D:hframes")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [6]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
2023-06-11 23:38:54 +02:00
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3, 4, 5]
|
|
|
|
}
|
|
|
|
|
2023-06-12 22:06:48 +02:00
|
|
|
[sub_resource type="Animation" id="Animation_jt5bg"]
|
|
|
|
resource_name = "throw"
|
2023-06-12 17:58:06 +02:00
|
|
|
length = 0.4
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:texture")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
2023-06-12 22:06:48 +02:00
|
|
|
"values": [ExtResource("2_iscwr")]
|
2023-06-12 17:58:06 +02:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("Sprite2D:hframes")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [4]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0, 1, 2, 3]
|
|
|
|
}
|
|
|
|
|
2023-06-11 23:38:54 +02:00
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gnukq"]
|
|
|
|
_data = {
|
2023-06-12 17:58:06 +02:00
|
|
|
"RESET": SubResource("Animation_ouyrp"),
|
|
|
|
"idle": SubResource("Animation_6vdwd"),
|
2023-06-12 22:06:48 +02:00
|
|
|
"throw": SubResource("Animation_jt5bg"),
|
2023-06-11 23:38:54 +02:00
|
|
|
"walk": SubResource("Animation_etqki")
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rlijp"]
|
|
|
|
size = Vector2(17, 10)
|
|
|
|
|
|
|
|
[node name="Enemy" type="CharacterBody2D"]
|
|
|
|
script = ExtResource("1_l5lyv")
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
position = Vector2(0, -16)
|
2023-06-12 22:06:48 +02:00
|
|
|
texture = ExtResource("2_iscwr")
|
2023-06-11 23:38:54 +02:00
|
|
|
flip_h = true
|
2023-06-12 17:58:06 +02:00
|
|
|
hframes = 4
|
2023-06-11 23:38:54 +02:00
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_gnukq")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2(-0.5, -5)
|
|
|
|
shape = SubResource("RectangleShape2D_rlijp")
|
2023-06-12 16:48:35 +02:00
|
|
|
|
|
|
|
[node name="EnemyBehaviorTree" parent="." instance=ExtResource("3_jk76t")]
|