163 lines
4.9 KiB
Text
163 lines
4.9 KiB
Text
[gd_scene load_steps=14 format=3 uid="uid://b1rm2x7lofhkm"]
|
|
|
|
[ext_resource type="Script" uid="uid://cv578r7dikm6r" path="res://objects/bosses/tesu.gd" id="1_aikw2"]
|
|
[ext_resource type="Texture2D" uid="uid://y0c5cddwa216" path="res://graphics/boss_sprites/tesu.png" id="1_h31ol"]
|
|
[ext_resource type="AudioStream" uid="uid://dwffpsx7xlfla" path="res://audio/sounds/boss_hit.ogg" id="3_aikw2"]
|
|
[ext_resource type="PackedScene" uid="uid://cciq2vk8sex8w" path="res://objects/bullet_emitter/test_bullet_emitter.tscn" id="4_jhpyq"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1r8x3"]
|
|
size = Vector2(33, 35)
|
|
|
|
[sub_resource type="Curve" id="Curve_aikw2"]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.13380282, 1), 0.0, 0.0, 0, 0, Vector2(0.42957747, 0.6778524), 0.0, 0.0, 0, 0, Vector2(0.64084506, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 5
|
|
|
|
[sub_resource type="Animation" id="Animation_jhpyq"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body/Sprite2D:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_aikw2"]
|
|
resource_name = "hurt"
|
|
length = 0.2
|
|
step = 0.0333333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body/Sprite2D:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1, 0, 0, 1), Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1r8x3"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_jhpyq"),
|
|
&"hurt": SubResource("Animation_aikw2")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_smtp5"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_1r8x3"]
|
|
resource_name = "midway_left"
|
|
length = 7.0
|
|
loop_mode = 1
|
|
step = 0.0333333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1, 2.5, 3.0333333, 4.1, 5, 6.4333334, 7),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(-80, 0), Vector2(-80, 0), Vector2(0, 0), Vector2(0, 0), Vector2(80, 0), Vector2(80, 0), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_sppxf"]
|
|
resource_name = "pinch"
|
|
length = 4.0
|
|
loop_mode = 1
|
|
step = 0.0333333
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.96666664, 2, 3, 4),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(-80, 0), Vector2(0, 0), Vector2(80, 0), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sppxf"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_smtp5"),
|
|
&"midway_left": SubResource("Animation_1r8x3"),
|
|
&"pinch": SubResource("Animation_sppxf")
|
|
}
|
|
|
|
[node name="Tesu" type="Node2D"]
|
|
script = ExtResource("1_aikw2")
|
|
|
|
[node name="Body" type="Node2D" parent="."]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Body"]
|
|
texture = ExtResource("1_h31ol")
|
|
|
|
[node name="Area2D" type="Area2D" parent="Body"]
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/Area2D"]
|
|
position = Vector2(-0.5, 0.5)
|
|
shape = SubResource("RectangleShape2D_1r8x3")
|
|
|
|
[node name="TestBulletEmitter" parent="Body" instance=ExtResource("4_jhpyq")]
|
|
|
|
[node name="HurtSound" type="AudioStreamPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
stream = ExtResource("3_aikw2")
|
|
|
|
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
emitting = false
|
|
amount = 3
|
|
lifetime = 0.2
|
|
one_shot = true
|
|
explosiveness = 0.31
|
|
randomness = 1.0
|
|
direction = Vector2(1, 1)
|
|
spread = 147.5
|
|
initial_velocity_min = 225.0
|
|
initial_velocity_max = 225.0
|
|
angle_max = 286.0
|
|
scale_amount_min = 3.0
|
|
scale_amount_max = 3.0
|
|
scale_amount_curve = SubResource("Curve_aikw2")
|
|
color = Color(1, 0, 0.22352941, 1)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_1r8x3")
|
|
}
|
|
|
|
[node name="Movements" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_sppxf")
|
|
}
|
|
|
|
[connection signal="area_entered" from="Body/Area2D" to="." method="_on_area_2d_area_entered"]
|