85 lines
2.9 KiB
Text
85 lines
2.9 KiB
Text
|
|
[gd_scene load_steps=14 format=3 uid="uid://dggx2w2c8xojc"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://cnhiesiqx3kwd" path="res://firework.gd" id="1_6yu8d"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://bobfhgsydmmr2" path="res://Florian/pyro.tscn" id="2_ss78o"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://c8gnb0kut2n5h" path="res://Florian/PointsLogic/point_thing.tscn" id="3_7to2x"]
|
||
|
|
|
||
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_ss78o"]
|
||
|
|
|
||
|
|
[sub_resource type="Curve" id="Curve_ss78o"]
|
||
|
|
_limits = [-360.0, 360.0, 0.0, 1.0]
|
||
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||
|
|
point_count = 2
|
||
|
|
|
||
|
|
[sub_resource type="CurveTexture" id="CurveTexture_7to2x"]
|
||
|
|
curve = SubResource("Curve_ss78o")
|
||
|
|
|
||
|
|
[sub_resource type="Gradient" id="Gradient_1v6ks"]
|
||
|
|
offsets = PackedFloat32Array(0, 0.310078, 0.647287, 1)
|
||
|
|
colors = PackedColorArray(0, 0, 0, 1, 0.53876, 0.53876, 0.53876, 1, 0.674629, 0.674629, 0.674629, 1, 1, 1, 1, 1)
|
||
|
|
|
||
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_mo22t"]
|
||
|
|
gradient = SubResource("Gradient_1v6ks")
|
||
|
|
|
||
|
|
[sub_resource type="Curve" id="Curve_n7hv6"]
|
||
|
|
_limits = [-1.0, 1.0, 0.0, 1.0]
|
||
|
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||
|
|
point_count = 2
|
||
|
|
|
||
|
|
[sub_resource type="CurveTexture" id="CurveTexture_tv5j2"]
|
||
|
|
curve = SubResource("Curve_n7hv6")
|
||
|
|
|
||
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_l21ki"]
|
||
|
|
lifetime_randomness = 1.0
|
||
|
|
angle_min = -352.3
|
||
|
|
angle_max = 352.3
|
||
|
|
angle_curve = SubResource("CurveTexture_7to2x")
|
||
|
|
spread = 180.0
|
||
|
|
initial_velocity_min = 9.32
|
||
|
|
initial_velocity_max = 9.32
|
||
|
|
gravity = Vector3(0, 0, 0)
|
||
|
|
scale_min = 0.5
|
||
|
|
scale_over_velocity_min = 97.16
|
||
|
|
scale_over_velocity_max = 363.35
|
||
|
|
color = Color(0, 0, 1, 1)
|
||
|
|
color_ramp = SubResource("GradientTexture1D_mo22t")
|
||
|
|
hue_variation_min = -0.42
|
||
|
|
hue_variation_max = 0.12
|
||
|
|
hue_variation_curve = SubResource("CurveTexture_tv5j2")
|
||
|
|
|
||
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ss78o"]
|
||
|
|
emission_enabled = true
|
||
|
|
emission = Color(1, 1, 0, 1)
|
||
|
|
|
||
|
|
[sub_resource type="BoxMesh" id="BoxMesh_r77gd"]
|
||
|
|
material = SubResource("StandardMaterial3D_ss78o")
|
||
|
|
|
||
|
|
[node name="Firework" type="RigidBody3D"]
|
||
|
|
script = ExtResource("1_6yu8d")
|
||
|
|
lifetime = 2.0
|
||
|
|
|
||
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||
|
|
shape = SubResource("SphereShape3D_ss78o")
|
||
|
|
|
||
|
|
[node name="Pyro" parent="." instance=ExtResource("2_ss78o")]
|
||
|
|
transform = Transform3D(-1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0, 1, 0, 0, 0)
|
||
|
|
|
||
|
|
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||
|
|
emitting = false
|
||
|
|
amount = 100
|
||
|
|
one_shot = true
|
||
|
|
explosiveness = 1.0
|
||
|
|
randomness = 1.0
|
||
|
|
process_material = SubResource("ParticleProcessMaterial_l21ki")
|
||
|
|
draw_pass_1 = SubResource("BoxMesh_r77gd")
|
||
|
|
|
||
|
|
[node name="ExplosionPoints" parent="." instance=ExtResource("3_7to2x")]
|
||
|
|
visible = false
|
||
|
|
points_worth = 30
|
||
|
|
points_name = "FireworkExplosion"
|
||
|
|
points_multiplier = 1.5
|
||
|
|
|
||
|
|
[node name="FireworkPoint" parent="." instance=ExtResource("3_7to2x")]
|
||
|
|
points_worth = 30
|
||
|
|
points_name = "Firework"
|