Files
DungeonsOfKharadum/src/scenes/attack_bomb.tscn

163 lines
6.0 KiB
Plaintext

[gd_scene format=3 uid="uid://bv5jfd7ck3d5u"]
[ext_resource type="Script" uid="uid://cejgtbmf5y0wk" path="res://scripts/attack_bomb.gd" id="1_script"]
[ext_resource type="Texture2D" uid="uid://ceitcsfb2fq6m" path="res://assets/gfx/fx/big-explosion.png" id="2_explosion"]
[ext_resource type="Texture2D" uid="uid://dkpritx47nd4m" path="res://assets/gfx/pickups/items_n_shit.png" id="2_ng1nl"]
[ext_resource type="AudioStream" uid="uid://d4dweg04wrw6a" path="res://assets/audio/sfx/sub_weapons/bomb_fuse.mp3" id="3_fuse"]
[ext_resource type="AudioStream" uid="uid://qcb5u7dqw1ck" path="res://assets/audio/sfx/explode_01.wav.mp3" id="4_explode"]
[ext_resource type="AudioStream" uid="uid://d4kjyb1olr74s" path="res://assets/audio/sfx/weapons/bow/bow_draw-02.mp3" id="5_pickup"]
[ext_resource type="AudioStream" uid="uid://nks0upmnsatn" path="res://assets/audio/sfx/ambience/debris-rocks-01.wav.mp3" id="7_h6264"]
[ext_resource type="AudioStream" uid="uid://dpwa2spwtc055" path="res://assets/audio/sfx/ambience/debris-rocks-02.wav.mp3" id="8_fa1rq"]
[ext_resource type="AudioStream" uid="uid://cxl1ltxeqd4ye" path="res://assets/audio/sfx/ambience/debris-rocks-03.wav.mp3" id="9_haynv"]
[sub_resource type="Gradient" id="Gradient_shadow"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_shadow"]
gradient = SubResource("Gradient_shadow")
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(0.8, 0.8)
[sub_resource type="CircleShape2D" id="CircleShape2D_bomb"]
radius = 4.5
[sub_resource type="CircleShape2D" id="CircleShape2D_collection"]
radius = 16.0
[sub_resource type="Curve" id="Curve_ng1nl"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.4198473, 0.8850688), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_bugki"]
curve = SubResource("Curve_ng1nl")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fuse"]
particle_flag_disable_z = true
direction = Vector3(0, -1, 0)
spread = 360.0
initial_velocity_min = 20.0
initial_velocity_max = 50.0
gravity = Vector3(0, -30, 0)
scale_min = 0.3
scale_max = 0.8
color = Color(0.9137255, 0.44651705, 0.2455241, 1)
alpha_curve = SubResource("CurveTexture_bugki")
hue_variation_min = -0.100000024
hue_variation_max = 0.12999998
[sub_resource type="Gradient" id="Gradient_fuse_light"]
offsets = PackedFloat32Array(0, 0.7250608, 1)
colors = PackedColorArray(1, 0.4, 0.1, 1, 1, 0.4, 0.1, 0.5, 1, 0.4, 0.1, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_fuse_light"]
gradient = SubResource("Gradient_fuse_light")
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(0.85897434, 0.8247863)
[sub_resource type="Gradient" id="Gradient_explosion_light"]
offsets = PackedFloat32Array(0, 0.69343066, 1)
colors = PackedColorArray(1, 0.6, 0.2, 1, 1, 0.6, 0.2, 0.5, 1, 0.6, 0.2, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_explosion_light"]
gradient = SubResource("Gradient_explosion_light")
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(0.9102564, 0.9188034)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_tqihf"]
playback_mode = 1
random_pitch = 1.0376596
streams_count = 3
stream_0/stream = ExtResource("7_h6264")
stream_1/stream = ExtResource("8_fa1rq")
stream_2/stream = ExtResource("9_haynv")
[node name="Bomb" type="CharacterBody2D" unique_id=367943636]
collision_layer = 2
motion_mode = 1
script = ExtResource("1_script")
[node name="Shadow" type="Sprite2D" parent="." unique_id=1404868451]
z_index = 1
z_as_relative = false
scale = Vector2(0.1, 0.1)
texture = SubResource("GradientTexture2D_shadow")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=818862430]
position = Vector2(0, -1)
texture = ExtResource("2_ng1nl")
hframes = 20
vframes = 14
frame = 199
[node name="ExplosionSprite" type="Sprite2D" parent="." unique_id=2038174438]
position = Vector2(0, -23)
texture = ExtResource("2_explosion")
hframes = 9
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1640139333]
shape = SubResource("CircleShape2D_bomb")
debug_color = Color(0.3825145, 0.70196074, 0.30829018, 0.41960785)
[node name="BombArea" type="Area2D" parent="." unique_id=97949411]
collision_layer = 4
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="BombArea" unique_id=963327610]
shape = SubResource("CircleShape2D_bomb")
debug_color = Color(0.29747584, 0.70196074, 0.6174988, 0.41960785)
[node name="CollectionArea" type="Area2D" parent="." unique_id=1088408959]
collision_layer = 0
monitoring = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="CollectionArea" unique_id=1383974781]
shape = SubResource("CircleShape2D_collection")
debug_color = Color(0.70196074, 0.51966184, 0.5406604, 0.41960785)
[node name="SfxFuse" type="AudioStreamPlayer2D" parent="." unique_id=1095147141]
stream = ExtResource("3_fuse")
volume_db = -2.0
attenuation = 2.0
bus = &"Sfx"
[node name="SfxExplosion" type="AudioStreamPlayer2D" parent="." unique_id=1652373167]
stream = ExtResource("4_explode")
volume_db = 2.0
attenuation = 3.0
bus = &"Sfx"
[node name="SfxPickup" type="AudioStreamPlayer2D" parent="." unique_id=898603969]
stream = ExtResource("5_pickup")
volume_db = -2.0
attenuation = 2.0
bus = &"Sfx"
[node name="FuseParticles" type="GPUParticles2D" parent="." unique_id=1234567890]
z_index = 2
position = Vector2(6.44, -6.46)
amount = 32
lifetime = 0.3
randomness = 1.0
process_material = SubResource("ParticleProcessMaterial_fuse")
[node name="FuseLight" type="PointLight2D" parent="." unique_id=1286608618]
position = Vector2(6.485, -6.335)
enabled = false
color = Color(1, 0.4, 0.1, 1)
energy = 0.8
texture = SubResource("GradientTexture2D_fuse_light")
[node name="ExplosionLight" type="PointLight2D" parent="." unique_id=1111111111]
enabled = false
color = Color(1, 0.6, 0.2, 1)
energy = 2.5
texture = SubResource("GradientTexture2D_explosion_light")
[node name="SfxDebrisFromParticles" type="AudioStreamPlayer2D" parent="." unique_id=1975206979]
stream = SubResource("AudioStreamRandomizer_tqihf")
attenuation = 1.7411015
panning_strength = 1.05