gai-godot-games/tutorial-game/scenes/mob/mob.tscn

126 lines
4.0 KiB
Plaintext
Raw Normal View History

2024-10-17 14:37:17 +02:00
[gd_scene load_steps=19 format=3 uid="uid://dft0l6kiatv8r"]
[ext_resource type="Script" path="res://scenes/mob/mob.gd" id="1_4r5kl"]
[ext_resource type="Texture2D" uid="uid://cb18usx4c7w2e" path="res://art/enemyFlyingAlt_1.png" id="2_hsio7"]
[ext_resource type="Shader" uid="uid://ddqioqbov85a2" path="res://scenes/mob/dissolve.tres" id="3_35rgv"]
[ext_resource type="Texture2D" uid="uid://cmk8ralale8i4" path="res://art/enemyFlyingAlt_2.png" id="3_360e7"]
[ext_resource type="Texture2D" uid="uid://blmdxdbb1lxjq" path="res://art/enemySwimming_1.png" id="4_4ch56"]
[ext_resource type="Texture2D" uid="uid://c5m4s7lkl2237" path="res://art/enemySwimming_2.png" id="5_7p3vg"]
[ext_resource type="Texture2D" uid="uid://pldyiivp2t2n" path="res://art/enemyWalking_1.png" id="6_q2v7h"]
[ext_resource type="Texture2D" uid="uid://kvg7h516ydee" path="res://art/enemyWalking_2.png" id="7_oe468"]
[ext_resource type="PackedScene" uid="uid://d0k2dheh1y3ff" path="res://scenes/mob/enemy_output_particles.tscn" id="8_hy8dr"]
[ext_resource type="Shader" path="res://scenes/mob/blink.gdshader" id="9_ral8v"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_gogsm"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_euyb8"]
noise = SubResource("FastNoiseLite_gogsm")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_hjs33"]
shader = ExtResource("3_35rgv")
shader_parameter/DissolveValue = 1.0
shader_parameter/DissolveEffectWidth = 0.2
shader_parameter/Noise = SubResource("NoiseTexture2D_euyb8")
[sub_resource type="SpriteFrames" id="SpriteFrames_6vbq8"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_hsio7")
}, {
"duration": 1.0,
"texture": ExtResource("3_360e7")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_4ch56")
}, {
"duration": 1.0,
"texture": ExtResource("5_7p3vg")
}],
"loop": true,
"name": &"swim",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_q2v7h")
}, {
"duration": 1.0,
"texture": ExtResource("7_oe468")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_o56se"]
radius = 34.0
height = 102.0
[sub_resource type="Gradient" id="Gradient_0jlai"]
offsets = PackedFloat32Array(0.882075, 1)
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_885pt"]
gradient = SubResource("Gradient_0jlai")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_78ell"]
lifetime_randomness = 1.0
particle_flag_disable_z = true
emission_shape = 1
emission_sphere_radius = 50.0
direction = Vector3(1, -1, 0)
spread = 27.537
initial_velocity_min = 200.0
initial_velocity_max = 400.0
gravity = Vector3(0, 500, 0)
damping_min = 100.0
damping_max = 400.0
scale_min = 3.0
scale_max = 5.0
color_ramp = SubResource("GradientTexture1D_885pt")
hue_variation_min = -0.9
hue_variation_max = -0.7
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource("1_4r5kl")
blink_shader = ExtResource("9_ral8v")
dissolve_shader = ExtResource("3_35rgv")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_hjs33")
scale = Vector2(0.75, 0.75)
sprite_frames = SubResource("SpriteFrames_6vbq8")
animation = &"walk"
frame = 1
frame_progress = 0.748916
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("CapsuleShape2D_o56se")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="TrailParticles" parent="." instance=ExtResource("8_hy8dr")]
z_index = -1
position = Vector2(-18.48, 0)
rotation = 3.14159
[node name="DissolveParticles" type="GPUParticles2D" parent="."]
emitting = false
amount = 40
process_material = SubResource("ParticleProcessMaterial_78ell")
lifetime = 0.6
one_shot = true
explosiveness = 0.69
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]