106 lines
3.3 KiB
Text
106 lines
3.3 KiB
Text
[gd_scene format=3 uid="uid://bmp481gbe4vcx"]
|
|
|
|
[ext_resource type="Script" uid="uid://br3jskryab3if" path="res://player/explosion/hit_area.gd" id="1_0tlud"]
|
|
[ext_resource type="AudioStream" uid="uid://co7bf4jl7q50w" path="res://sfx/freesound_community-medium-explosion-40472.mp3" id="2_76w0s"]
|
|
[ext_resource type="Script" uid="uid://cvcrxy30afjn7" path="res://player/explosion/audio_stream_player_3d.gd" id="3_e5gms"]
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_5mksp"]
|
|
height = 0.5
|
|
radial_segments = 8
|
|
rings = 8
|
|
is_hemisphere = true
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xpyis"]
|
|
transparency = 1
|
|
blend_mode = 1
|
|
shading_mode = 0
|
|
albedo_color = Color(1, 0, 0, 0.48235294)
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_xpyis"]
|
|
radius = 4.0949817
|
|
|
|
[sub_resource type="Animation" id="Animation_yr3g8"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Container:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_xpyis"]
|
|
resource_name = "explode"
|
|
length = 0.5
|
|
step = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Container:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(1, 1, 1), Vector3(0, 0, 0)]
|
|
}
|
|
tracks/1/type = "method"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.5),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_120gr"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_yr3g8"),
|
|
&"explode": SubResource("Animation_xpyis")
|
|
}
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_y2mpi"]
|
|
random_pitch = 1.0293022
|
|
streams_count = 1
|
|
stream_0/stream = ExtResource("2_76w0s")
|
|
|
|
[node name="Explosion" type="Node3D" unique_id=702514359]
|
|
|
|
[node name="Container" type="Node3D" parent="." unique_id=1035655414]
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Container" unique_id=509955843]
|
|
transform = Transform3D(7.6891003, 0, 0, 0, 7.6891003, 0, 0, 0, 7.6891003, 0, 0, 0)
|
|
mesh = SubResource("SphereMesh_5mksp")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_xpyis")
|
|
|
|
[node name="HitArea" type="Area3D" parent="Container" unique_id=468568433]
|
|
collision_layer = 0
|
|
collision_mask = 14
|
|
script = ExtResource("1_0tlud")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Container/HitArea" unique_id=837356976]
|
|
shape = SubResource("SphereShape3D_xpyis")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=893547695]
|
|
libraries/ = SubResource("AnimationLibrary_120gr")
|
|
autoplay = &"explode"
|
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." unique_id=2112350325]
|
|
stream = SubResource("AudioStreamRandomizer_y2mpi")
|
|
volume_db = 4.0
|
|
unit_size = 25.0
|
|
autoplay = true
|
|
max_distance = 100.0
|
|
script = ExtResource("3_e5gms")
|