90 lines
2.9 KiB
Plaintext
90 lines
2.9 KiB
Plaintext
|
|
[gd_scene load_steps=14 format=3 uid="uid://bbagt6u0i07qx"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" path="res://bomb.gd" id="1_hkjew"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://ckdx8o2mm5ynf" path="res://assets/Bombe.png" id="2_e237x"]
|
||
|
|
[ext_resource type="AudioStream" uid="uid://bjukkr1crbdn5" path="res://assets/explosion.wav" id="3_oy301"]
|
||
|
|
|
||
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_tlmti"]
|
||
|
|
bounce = 0.8
|
||
|
|
|
||
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_mjow3"]
|
||
|
|
|
||
|
|
[sub_resource type="Curve" id="Curve_pwtqa"]
|
||
|
|
min_value = -360.0
|
||
|
|
max_value = 360.0
|
||
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.283, 180), 0.0, 0.0, 0, 0, Vector2(0.986, 250), 0.0, 1008.0, 0, 0]
|
||
|
|
point_count = 3
|
||
|
|
|
||
|
|
[sub_resource type="CurveTexture" id="CurveTexture_whpl5"]
|
||
|
|
curve = SubResource("Curve_pwtqa")
|
||
|
|
|
||
|
|
[sub_resource type="Gradient" id="Gradient_mjxym"]
|
||
|
|
offsets = PackedFloat32Array(0, 0.780488, 1)
|
||
|
|
colors = PackedColorArray(1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1)
|
||
|
|
|
||
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_uev6e"]
|
||
|
|
gradient = SubResource("Gradient_mjxym")
|
||
|
|
|
||
|
|
[sub_resource type="Curve" id="Curve_fapsh"]
|
||
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -1.28901, 1.4, 0, 0]
|
||
|
|
point_count = 2
|
||
|
|
|
||
|
|
[sub_resource type="CurveTexture" id="CurveTexture_6ssa4"]
|
||
|
|
curve = SubResource("Curve_fapsh")
|
||
|
|
|
||
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_3c5ho"]
|
||
|
|
particle_flag_disable_z = true
|
||
|
|
emission_shape = 1
|
||
|
|
emission_sphere_radius = 5.0
|
||
|
|
angle_min = 1.07288e-05
|
||
|
|
angle_max = 45.0
|
||
|
|
angle_curve = SubResource("CurveTexture_whpl5")
|
||
|
|
spread = 180.0
|
||
|
|
initial_velocity_min = 75.0
|
||
|
|
initial_velocity_max = 125.0
|
||
|
|
gravity = Vector3(0, 0, 0)
|
||
|
|
scale_min = 4.0
|
||
|
|
scale_max = 5.0
|
||
|
|
scale_curve = SubResource("CurveTexture_6ssa4")
|
||
|
|
color_ramp = SubResource("GradientTexture1D_uev6e")
|
||
|
|
turbulence_noise_strength = 14.86
|
||
|
|
turbulence_noise_scale = 6.399
|
||
|
|
turbulence_noise_speed_random = 1.48
|
||
|
|
turbulence_influence_min = 0.056
|
||
|
|
turbulence_influence_max = 0.056
|
||
|
|
|
||
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_y1ra5"]
|
||
|
|
radius = 100.0
|
||
|
|
|
||
|
|
[node name="Bomb" type="RigidBody2D"]
|
||
|
|
collision_layer = 0
|
||
|
|
physics_material_override = SubResource("PhysicsMaterial_tlmti")
|
||
|
|
angular_damp = 2.0
|
||
|
|
script = ExtResource("1_hkjew")
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
|
position = Vector2(0, -2)
|
||
|
|
scale = Vector2(1.5, 1.5)
|
||
|
|
texture = ExtResource("2_e237x")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
|
shape = SubResource("CircleShape2D_mjow3")
|
||
|
|
|
||
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||
|
|
stream = ExtResource("3_oy301")
|
||
|
|
|
||
|
|
[node name="Timer" type="Timer" parent="."]
|
||
|
|
|
||
|
|
[node name="Explosion" type="GPUParticles2D" parent="."]
|
||
|
|
emitting = false
|
||
|
|
amount = 32
|
||
|
|
process_material = SubResource("ParticleProcessMaterial_3c5ho")
|
||
|
|
explosiveness = 1.0
|
||
|
|
|
||
|
|
[node name="ExplosionArea" type="Area2D" parent="."]
|
||
|
|
collision_mask = 2
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ExplosionArea"]
|
||
|
|
shape = SubResource("CircleShape2D_y1ra5")
|